Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

![]() |
![]() |
![]() |

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