LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vsftp (https://www.linuxquestions.org/questions/linux-newbie-8/vsftp-448693/)

tkt 05-26-2006 04:17 AM

vsftp
 
Hi,

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?

Thanks.

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

Hi,

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

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

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?

Thanks.

tkt 05-26-2006 08:32 PM

Hi,

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.