Other Help Topics :: Set permission to NO browse out of /home directory



I am new to linux and DSL.

I have a quick question. I want to set it so user can not browse out of the /home directory when the user access the server via FTP on the BetaFTP server. Can this be done?

Thanks for your help.

icpeanuts, I tried to do this but was unable to.  I believe you could create what is called a chroot jail, but I'm still try to work out exactly what you need to place inside the jail to make the usr name/password recognition for betaftpd to work.
I downloaded Pure-ftpd instead and following their instruction to add /./ to the passwd file of the user and it worksl. I tried various method with betaftp. No outcome.
Well, I looked around and found a bash script that can set up a nice chroot jail for dsl.  It's called make_chroot_jail.sh and it worked really well, from what I could tell.  It adds users and can update the needed libraries depending on what you need in the shell.  With a little bit of tinkering in the passwd file in the jail it creates you can have everyone who ftps in looking at the same directory.

I wish I understood the script better.  I'm still trying to figure out what I did wrong when I did it by hand, but if the script does it right, that's all I need.

EDIT: you can still see out of the home directory, but only as far as the extent of the chroot jail.

Anyone have any simpler ways to do this? This should not be a big problem. Thanks in advance.  :D
Next Page...
original here.