You are not logged in.
Is there a simple way to lock out a specific user from using the commands cp/mv/rm? I want to make a user account for a friend that he can ssh into, but at the same time use a reasonable amount of security such as disabling the commands above. Is there a way to do so without changing group permissions around and having settings specific to his uid? I couldn't find anything on the Internet much in the way of this (all I found were suggestions on locking out users to the command su which involved shuffling group persmissions around). Thanks if anybody knows
Last edited by vertana (2009-02-07 22:13:55)
Offline
Why not lock him in a chroot jail instead so that he only has access to certain directories?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
sudo can do this.
Offline
If I Chroot him into a jail, I would only copy certain commands into the /chrootdir/bin/ directory in order for his shell to be able to access those few commands correct? And how does sudo do this? I thought sudo was only for a user to assume root permissions temporarily, not restric a regular user from other commands.
Offline
SELinux can do what you're asking, but it's probably more than you want to deal with.
http://wiki.archlinux.org/index.php/SELinux
I don't run many SELinux boxes, but they are hell to get right. Once you get all of your policies worked out it's ok, but it's a huge pain to get to where everything's working right.
The chroot's probably the way to go. You may want to check out jailkit in AUR.
-mS
Last edited by aglarond (2009-02-07 19:49:27)
Offline
Ok! Thanks for all the help I decided to go with the Chroot solution for now with symlinks leading to the actual binaries for commands. The SELinux was overdoing it for a single SSH user, but I will definitely mess with it to see if I can deploy it for servers (up front work probably beats long term maintenance). Thanks everyone ^^
Offline