su使用自己的密码而不是root密码?

我正在使用visudo编辑并查看以下行:

 ## Allows people in group wheel to run all commands %wheel ALL=(ALL) ALL 

而当我添加一个用户wheel组,他们可以su然而他们必须把root密码这样做。

在过去的某个时候,我记得可以访问一台机器,当我想要它时,需要我自己的密码而不是root密码。 我如何设置visudo来做到这一点?

你正在寻找的可能是

 sudo -i 

susudoersvisudo )文件无关。

如果你运行sudo su你可以这样做。

确保在使用visudo命令进行编辑时,这不是在/ etc / sudoers中设置的

的rootpw

 If set, sudo will prompt for the root password instead of the 

调用用户的密码。 这个标志默认是closures的。

来自: http : //www.gratisoft.us/sudo/sudoers.man.html