#edit /etc/vsftpd.conf or /opt/etc/vsftpd.conf
Open the vsftpd.conf file and search for chroot_list_enable=YES
Make sure it is YES. Do the same for the following variables
chroot_list_file=/etc/vsftpd.chroot_list or /opt/etc/vsftpd.chroot_list
chroot_list_enable=YES
Save and close the file
Create vsftpd.chroot_list in /etc/ or /opt/etc/
Add the username you want to export to ftp.
IMP: The user must already be a system user with a valid passwd. You must be able to find /home/
If the user you want to add is not a system user then create that user first before editing the above file.
#adduser
#passwd
Restart the vsftpd server using /etc/init.d/vsftpd restart or service vsftpd restart
Now you can log into ftp using the new user.
3 comments:
Thanks a lot! You've saved my itchy head!
ur welcome!
Hi,
Thanks for the tip.
I tried this and I still get:
$ ftp 142.174.83.80
Connected to 142.174.83.80.
220 FTP server ready
User (142.174.83.80:(none)): ftp
331 User name okay, need password for ftp
Password:
530 Access denied
Connection closed by remote host.
Any ideas?
Thanks,
Paul
Post a Comment