0

I'm editing using visudo and looking at the following line:

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

And when I add a user to the wheel group, they are able to su however they must put in the root password to do so.

Sometime in the past I remember having access to a machine and when I would su it would require my own password instead of the root password. How do I setup visudo to do this?

3 Answers 3

8

What you are looking for is probably

sudo -i

su has nothing to do with the sudoers (visudo) file.

3

If you run sudo su you can do this.

1
  • Ah yes I remember that was how it was done. Thanks! Jul 18, 2011 at 22:15
1

Make sure this is not set in /etc/sudoers when you edit it with the visudo command

rootpw

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

password of the invoking user. This flag is off by default.

From: http://www.gratisoft.us/sudo/sudoers.man.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .