Results 1 to 6 of 6
I have this annoying problem. Except root no other user on my box is authozied to execute the following commands: shutdown halt reboot poweroff etc. These commands I believe should ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-25-2006 #1
These commands I believe should be executable by all "normal users". There exists no command such as "visudo" and I have tried using shutdown -a. None work, everytime I execute them I get the message:
Only root can do it.
Please suggest me some solution.
I have also tried making a shutdown group and adding me to it (as well as root) and then changing ownership of /sbin/shutdown to this group and then
chmod g+x /sbin/shutdown
- 03-25-2006 #2
You have to edit the file /etc/sudoers
In there there is a line that goes along the lines of "root ALL=(ALL)ALL" and under that there should be your username like "#BOB ALL=(ALL)ALL" uncomment the line by deleting the #. I do not know if this will work but you never know
- 03-31-2006 #3
- 03-31-2006 #4
- 04-08-2006 #5
here is a small step by step from the wiki on how to set this up http://gentoo-wiki.com/HOWTO_Let_a_c...hutdown/reboot
- 04-08-2006 #6