This might be a stupid question, but here goes. I need to setup Ftp access to a linux server. I have already added the user and set up the Home dir. But how do i lock them in the home dir? Basically so they can't back out and see other dirs. Thanks.
With wu-ftpd this is not a simple as you might like unfortunately. You basically have to set up a chroot jail, i.e. you create a minimal environment somewhere in the directory tree (e.g. under /home/ftp/) where there is a minimal linux environment such that the user's root directory can be made to be at that point. So /home/ftp appears as '/' to such users and they can't navigate beyond that. See -->
I would suggest looking at proftpd which is much more helpful in these kind of areas. It has features such as virtual hosts (similar to Apache). You can use directives like :
I am a little confused, but let me add something to this. We are running a web server for some of or friends and i want to lock them into there own home dir that they upload for the web pages. Would i have to download a separte Ftp program for Linux or can i use the one that comes with it?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.