Results 1 to 6 of 6
Thread: Shutdown Permissions
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
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
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