Click to See Complete Forum and Search --> : How do I allow a user to halt or reboot system?


Miths
02-27-2001, 06:58 AM
I'm getting tired of having to "su root" everytime I'm shutting down or rebooting. How do I grant a user the priviliges to do this?
I've tried changing the user settings in Linuxconf (superuser equavalence, shutdown granted etc.), but it's still not working.
Halt and reboot commands are "not found" and shutdown -r/-h is not allowed.

Pierre Lambion
02-27-2001, 08:16 AM
I cannot give you a complete answer as I'm inot on my box at home but halt and reboot should be in /sbin which is not in the path of the normal user. So you should type the complete path.

However, I found a workaround to your problem. There is a file in /etc (I think innitab or something like this) taht specify the command to run on the ctrl-alt-del. I just changed the shutdown -r to shutdown now.
This way, as a normal user, I can ctrl-alt-del to shutdown prpoerly my PC.

Obviously, then you must su root in order to reboot ... However, I shoutdown more frequently than I reboot!

P.