allow normal user to exec some root commands w/o sudo
what do I add to visudo? the sudo manual is kind of cryptic..
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
On most systems, a quick press of the power switch will shut down the system. If the desktop is used, they can select shutdown from the menu.
If your system uses polkit, there are several shutdown policies: org.freedesktop.hal.power-management.shutdown org.freedesktop.hal.power-management.shutdown-multiple-sessions org.freedesktop.hal.power-management.reboot org.freedesktop.hal.power-management.reboot-multiple-sessions Also try reading the sudoers man page instead of the sudo manpage. It has examples. |
Quote:
Quote:
|
Code:
Cmnd_Alias HALT = /usr/sbin/halt |
Quote:
Quote:
|
"ignore my motives" is always a great cover up for "I'm trying to do something nefarious"
|
I know this was solved but I figured I'd add an alternative. If you want a specific group of people to run something as root...
Code:
Cmnd_Alias MYCMDS = /usr/bin/halt, /path/cmd |
Hi,
Quote:
the machine, without giving them full root permission. For example, I usually setup my laptops like this. I don't use a gui that provides a way to shutdown the machine, so allowing myself to simply run Code:
sudo halt Cheers, Evo2. |
Quote:
I second the motion. |
All times are GMT -5. The time now is 10:34 AM. |