Results 1 to 7 of 7
Hi 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-21-2006 #1
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?
- 03-22-2006 #2
- 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:
- 03-22-2006 #3
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
- 06-10-2006 #4
- 06-10-2006 #5
- 06-15-2006 #6
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
- 06-15-2006 #7
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.