Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Locking user to home dir
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
iGMAS
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2004
Posts: 83

PostPosted: Fri Sep 24, 2004 9:11 pm    Post subject: Locking user to home dir Reply with quote

How can I lock the user in his/her home dir so that he/she can't ls anything outside his/her home dir
_________________
http://igmas.is.dreaming.org
Back to top
View user's profile Send private message
airman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2004
Posts: 82
Location: Utah, USA

PostPosted: Fri Sep 24, 2004 10:23 pm    Post subject: Reply with quote

The ability to view a directory is dependent on the "execute" (x) right on the directory. If you remove this right, then the associated user/group/other will be unable to view the directory. So, you could remove "other" execute rights from all the directories on your system where you don't want users who aren't the owner or a member of an appropriate group to be able to see.

Code:
chmod o-x <directoryname>


However, this is a pain because you have to change the rights manually for each individual directory.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20582

PostPosted: Sat Sep 25, 2004 1:50 am    Post subject: Reply with quote

Moved from Other Things Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Sat Sep 25, 2004 11:30 am    Post subject: Reply with quote

take a look at:
http://packages.gentoo.org/search/?sstring=jail
http://www.jmcresearch.com/projects/jail/

This way you can even ensure that the users don't fuck up the system, only there own part of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum