“针对您要使用的特定用户并将其分配给用户ID 0 /组0”

我试图使用VMWare vCenter Converter虚拟化一台Ubuntu机器,但遇到权限问题。 我按照第一部分和第二部分的说明在这个页面上,但是当我得到“对于Ubuntu操作系统需要进一步的configuration”我开始遇到麻烦。 我在Linux上很体面,但是我不是一个有经验的系统pipe理员。

  • 我如何Target the specific user you will be using and assign it user id 0/group 0
  • 我如何Ensure that you also still enable Allow root to ssh even though you are not using the root account

谢谢你的帮助。

我如何定位您将要使用的特定用户并将其分配给用户ID 0 /组0?

不要将用户标识或组标识0分配给您的目标用户。 按照指定将用户添加到/etc/sudoers 。 然后标记该sudo将被用作logging。 sudo将被用来在需要的时候以root身份(用户标识0,组0)运行命令。

我如何确保即使您不使用root帐户,也仍然启用“允许root用户使用ssh”?

这在文件/etc/ssh/sshd_config 。 如果按键用于login,则需要如下行:

 PermitRootLogin without-password