Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 8 down vote accepted

What you are looking for is probably

sudo -i

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

share|improve this answer

If you run sudo su you can do this.

share|improve this answer
Ah yes I remember that was how it was done. Thanks! – Jake Wilson Jul 18 '11 at 22:15

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


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

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


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.