-   Linux - Newbie (
-   -   vsftp (

tkt 05-26-2006 04:17 AM


I have set up an FTP server with mounting point to /var/ftp/pub, but was quite amazed that I could view whole FTP server by clicking ...up level in FTP software. Is there any way such that the FTP server will just allow FTP user to view /var/ftp/pub, but not folders above that level?


rch 05-26-2006 06:12 AM

just change the chroot for the user in vsftpd.conf.
Read the man pages first.
You did not mention your distribution, but most distributions come with a local chroot
for users config of vsftpd
If at all all you have to do is uncomment the lines where chroot_list_enable is given.

tkt 05-26-2006 07:24 PM


The distribution for vsftp is 1.2.1-5. I have put in the chroot just like below.


In vsftpd.chroot_list, I added in /var/ftp/pub.

However, after restarting vsftp service, ftp users still could view whole FTP server.

Any idea?


tkt 05-26-2006 08:32 PM


Thanks. I editted vsftpd.chroot_list and added the user list in, and now they could just view their own directories.

rch 05-28-2006 12:51 AM

It's Alright. When I said distribution I mean Linux Distribution(like Fedora, Mandrake etc) not the version number of vsftp. Next time you ask a question, remember that.
And by the way, you figured it out yourself(that /etc/vsftpd.chroot_list should contain users). That means you searched for answers.
That's good.

All times are GMT -5. The time now is 08:29 PM.