Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
Halt and reboot permissons for normal user
On my box, if I want to reboot/halt I have to issue this command as a superuser which is quite annoying. Which user group has these permissions and how do I grant these permissions to a particular group?
- Join Date
- Jan 2006
do a ls -l /sbin/shutdown and see which group has permissions. it's root on my pc. just add the user name you want to be able to issue the shutdown command in /etc/group on the first line like this:
This may not be a "perfect" solution, but it is one possible option:
Find and modify the 'ctrlaltdel' line in your '/etc/inittab' file to something like:
ca::ctrlaltdel:/sbin/shutdown -r -t 5 now
Change the ownership of '/sbin/shutdown':
chown root:shutdown /sbin/shutdown
chmod 750 /sbin/shutdown
sudo did not work out.Originally Posted by spencerf
apoorv@chandraghanta ~ $ halt sudo: can't open /etc/sudoers: Permission denied apoorv@chandraghanta ~ $ sendmail: Cannot open mail:25
did you do this step?
chmod +s /usr/bin/sudo
chmod 777 /etc/sudoers
or 755 to deny write access but allow read for group and others.