how can i allow a power user 2 shutdown linux boz from console
Hi all!
I Need a user who can shutdown box from shell but can`t do some damages in the system. Thx Poweroff |
man shutdown
look for shutdown.allow. also, check for sudo. |
i am not sure but i believe it should work
you can change the permission of shutdown so that other users can also shutdown , without elevating their previlages (and hope you dont need to create a user just for shutdown :-) ). |
I have a line for that in my sudoers
man sudo man visudo man sudoers and it works smoothly |
what I do is create a 'shutdown' group, then modify /sbin/shutdown so that its group owner (set to 'shutdown') has executable permission, chmod /sbin/shutdown to suid ('chmod 4550 /sbin/shutdown') and add the desired user to the 'shutdown' group.
but that's just what I do, I could be wrong. |
heh, i also configured sudo for it, i did it differently though, as i have only the root account and my own.
i just added this to the command alias thingie: Code:
#Command Alias section |
can you explain that a little bit more .....
( i mean i dont understand how it will give the user the previlage to shutdown ) : he doesnt want to give the root passwd to the users to do shutdown.... |
Well if you just do what jpbarto said then you can do it right now, easy as, you dont need any additional software or anything. Looks like it would work, jpbarto says it does anyway.
|
All times are GMT -5. The time now is 01:38 AM. |