[Chrootssh-users] chrooting users to their home directories
Brought to you by:
punkball
From: John S. <li...@wa...> - 2005-02-20 22:21:39
|
Just joined the list, but saw a question on 2005-01-08 from Camilo Rostoker on setting up the chroot so that the chrooted user sees no other chrooted users. I did this simply by putting all the working chroot directories and files into the users' home directory. I then set up the home directory as: /path/to/user/./ That way, the chroot is within the user's home directory. I then create a sub-directory www within the home, and give write permission to the chrooted user to that. The downsides of this include: - the user sees /bin, /lib, /etc, and has to know to write his files to /www - Separate copies of the libs and binaries takes up space (5 M on my Slackware 9.1 system, 7.6 M on my SuSE 9.2 system) But it does do what you requested. John -- __________________________________________________________________ John Seifarth http://www.waw.be/waw/ Words & Wires SPRL li...@wa... Computer Consulting & Language Services Voice: (+) 32-2-660-3943 1160 Brussels, Belgium Fax: (+) 32-2-675-3922 |