friedgold

Group: Members
Posts: 122
Joined: Mar. 2005 |
 |
Posted: June 09 2005,14:58 |
 |
Just to expand on my earlier answer the default sudoers' file looks like this
Code Sample | # sudoers file.
root ALL=(ALL) ALL
knoppix ALL=NOPASSWD: ALL dsl ALL=NOPASSWD: ALL |
This means dsl can run anything using sudo with no password. You could change it to something like this:
Code Sample | # sudoers file.
Cmnd_Alias SHUTDOWN = /usr/sbin/shutdown Cmnd_Alias HALT = /usr/sbin/halt Cmnd_Alias REBOOT = /usr/sbin/reboot
root ALL=(ALL) ALL dsl ALL=NOPASSWD: SHUTDOWN,HALT,REBOOT |
This allows dsl to use sudo to shutdown/reboot without a password but restricts any other commands.
If you want to know more about the sudoers file try the sudoers' manual
|