Category: password

How allow users to execute some commands without root password

We have to edit the sudoers list

$ sudo nano /etc/sudoers

If you want to leave out the password request for few commands, tipically mount umount shutdown, etc… , you need to put your entry at the bottom, like this:

%admin ALL=(ALL) ALL
awesomeuser ALL=(ALL) NOPASSWD: /bin/mount, /bin/umount, /bin/shutdown

Otherwise the %admin line overrides whatever you specify.

Tested on Ubuntu 10.10

WordPress Themes