Add users to vsftpd

Source: linux-hacks.blogspot.nl

#edit /etc/vsftpd.conf or /opt/etc/vsftpd.conf
local_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list or /opt/etc/vsftpd.chroot_list
chroot_list_enable=YES
#You may alsow ant to disable anonymous access
#You may also want to enable write access

#Create vsftpd.chroot_list in /etc/ or /opt/etc/
Add the username you want to export to ftp.
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.

Leave a Reply

Your email address will not be published. Required fields are marked *