Is there a way you can set up a *nix user account so that a user can do pretty much NOTHING except shut a system down? Anyone know how?
Announcement
Collapse
No announcement yet.
*nix shutdown permissions
Collapse
X
-
Originally posted by albatorsk
Uhm, make the users shell /sbin/halt. That ought to take care of it. It's not a pretty solution, but it works :P
Either way, I'd still like to know how to do the user permissions thing for that if someone knows for future reference.
Comment
-
To make the first solution work, you need to check what permissions are needed on yor box to halt it. You could for example check to see what group the halt command is owned by, and put the "halt"-user in the same group (and make sure that the group has execute permissions on the file).
The second way is a bit more tricky. You see, most systems are set up with most binaries executable by everyone, so in order to change that, you have to either change the permissions of every single file on the system, or set up a chrooted jail for the single user. This on the other hand, has the effect that he can't reach anything on the system except for what's in his "jail". Do a search for chroot on Google for more information.
Comment
-
Originally posted by albatorsk
or set up a chrooted jail for the single user. This on the other hand, has the effect that he can't reach anything on the system except for what's in his "jail". Do a search for chroot on Google for more information.
Comment
-
I'm curious as to why you want to setup a user like this?Gigabyte GA-K8N Ultra 9, Opteron 170 Denmark 2x2Ghz, 2 GB Corsair XMS, Gigabyte 6600, Gentoo Linux
Motion Computing M1400 -- Tablet PC, Ubuntu Linux
"if I said you had a beautiful body would you take your pants off and dance around a bit?" --Zapp Brannigan
Comment
-
Originally posted by Marshmallowman
You could just tell em ctrl_alt-del and turn of the power button.Blah blah blah nick blah blah confusion, blah blah blah blah frog.
Comment
Comment