Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

If you run sudo su you can do this.

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

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

share|improve this answer
add comment

Your Answer

 
discard

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.