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
Shutdown Permissions
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 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
Code: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 #3There is no such file, infact visudio, as I wrote earlier is not recoginized by my machine. What do I need to emerge in order to make it work? Or is there some other way out?
Originally Posted by Game master pro
- 03-31-2006 #4
have a look at this Gentoo guide
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
- 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
~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
http://loft306.org
- 04-08-2006 #6I get this message when I type
Originally Posted by loft306
I followed all things mentioned on your link.Code:Geiger@DeusExMachina ~ $ reboot sudo: can't open /etc/sudoers: Permission denied


Reply With Quote
