vsftp chroot
Hi,
I have set up vsftp on an ubuntu 20 server but I can't restrict (the only) user to only be able to upload to /var/www/vhosts/my.site.com Once connected he can browse to all dirs vsftpd.conf: Code:
connect_from_port_20=YES |
There are so very few legitimate use-cases for 1970s FTP these days in 2022 that I would ask what are your reasons for trying it? Usually most calls for assistance with FTP turn out to be X Y Problems, plus it is quite difficult to set up compared to SFTP.
I would also point out that if you are connecting with SSH then you already have SFTP and can use that. Additionally, most graphical "FTP" clients have built-in SFTP support since many years back. CyberDuck, FileZilla, Nautilus, WinSCP, and so on all can use SFTP. The best part is that SFTP support is part of OpenSSH-server out of the box and is easy, almost trivial to chroot. |
Hi,
Tnx for your reply, I know but our company uses worldwide devs on freelance basis for scraping and some of those devs want it like this. In our older environment we used plesk for them which was easier to configure. |
Your obsolete solution may be found in articles like this one https://ylmzmtl.com/vsftpd_chroot_home_dir/.
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 06:01 PM. |