Computing.Net > Forums > Linux > Restrict shell-users to its homedir

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Restrict shell-users to its homedir

Reply to Message Icon

Name: Rodik
Date: May 10, 2003 at 16:42:18 Pacific
OS: Linux Debian
CPU/Ram: P266/256
Comment:

Hi, i'm running linux debian dist, and i want to restrict (some) of my shell-users to their home directory. That is, disabling them the ability of going outside their home dir, HOWEVER, they should be able to create dirs/files in the home and cd into them. like chroot them inside their home dirs.

problem with chroot is that it also would denie them the ability to run anything in the /bin & /usr etc dirs since they are out of their reach. therefore chroot is not an option. (UNLESS, of course, i copy all those folder into each users home dir which would need ALOT of diskspace that i dont have.... or perhaps symlink... but that wouldn't work)

almost all hosted shells work this way... you can roam around in your home dir, and do whatever you like there (it's completily empty from the beginning - YET programs like 'grep´, 'more´ and 'w´ will work/run). but you cant move outside your own home-dir...

and no, restricted shells disable the "cd" command, which wouldn't allow users to create sub-folders, so it's not an option.

this seems to be so standard, why is it so hard to achieve? does anyone have a simple solution for this? (or any solution at all??)

thx



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Restrict shell-users to its homedir

Limiting users to specific directories. www.computing.net/answers/linux/limiting-users-to-specific-directories/12026.html

how do add user to home and www www.computing.net/answers/linux/how-do-add-user-to-home-and-www/22418.html

how to restrict user bandwidth www.computing.net/answers/linux/how-to-restrict-user-bandwidth-/25755.html