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 ...
- 03-21-2006 #1
Halt and reboot permissons for normal user
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 do I grant these permissions to a particular group?
Thanks
- 03-22-2006 #2Just Joined!
- Join Date
- Jan 2006
- Posts
- 77
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:
root:x:0:root,<username>
- 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:
Create a new group for the users you wish to have this privilege (For this example, I will use 'shutdown'.)Code:ca::ctrlaltdel:/sbin/shutdown -r -t 5 now
Change the ownership of '/sbin/shutdown':
Change the permissions of '/sbin/shutdown':Code:chown root:shutdown /sbin/shutdown
Add 'shutdown' to the group list of each user who is to have this privilege.Code:chmod 750 /sbin/shutdown
- 06-10-2006 #4Still getting the same error.
Originally Posted by CodeRoot
- 06-10-2006 #5
take a look at this wiki
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
- 06-15-2006 #6
sudo did not work out.
I tried this thing but now I get this error:
Originally Posted by spencerf
I even tried changing the permissions of /etc/sudoers but nothing worked out.Code: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?
if so then try manually modifying permissions for /etc/sudoersCode:chmod +s /usr/bin/sudo
chmod 777 /etc/sudoers
or 755 to deny write access but allow read for group and others.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


Reply With Quote