Revision [2155]
Last edited on 2009-01-15 23:58:41 by WikiAdminAdditions:
# command with arguments
jane ALL=(ALL) NOPASSWD: /usr/bin/vi /etc/passwd
jane ALL=(ALL) NOPASSWD: /usr/bin/vi /etc/passwd
Revision [1696]
Edited on 2008-04-19 11:45:41 by WikiAdminAdditions:
smith ALL=(ALL) NOPASSWD: BASHSOUND, PASSWD:/usr/bin/tcsh
Another example to allow sudo to another user, other than root:
smith ALL = (testusr) NOPASSWD: /testsudo.sh
To run, do this:
sudo -u testusr /testsudo.sh
Another example to allow sudo to another user, other than root:
smith ALL = (testusr) NOPASSWD: /testsudo.sh
To run, do this:
sudo -u testusr /testsudo.sh
Deletions:
Revision [1610]
Edited on 2008-04-07 09:46:37 by WikiAdminAdditions:
# Allow user to run certain commands w/o password
Deletions:
Revision [1609]
Edited on 2008-04-07 09:46:28 by WikiAdminAdditions:
# Allow root to run any commands anywhere
# Allow user to run certain commands
Cmnd_Alias BASHSOUND = /bin/bash, /usr/local/bin/cmictl
smith ALL=(ALL) NOPASSWD: BASHSOUND
# Allow user to run certain commands
Cmnd_Alias BASHSOUND = /bin/bash, /usr/local/bin/cmictl
smith ALL=(ALL) NOPASSWD: BASHSOUND
Deletions:
Revision [798]
Edited on 2007-07-24 03:57:55 by WikiAdminAdditions:
On systems where su cannot be granted, sudo is a good alternative. Simply do a sudo bash gives you virtually the same thing as "su -"