Ubuntu – How to create a user for ftp server


I'm using vsftpd. I need an ftp server for my web server, I can login under my account of course, but I can't do the main thing it's meant for and add/edit/remove files in my var/www directory.

Could someone walk me through the process in creating a new user for just ftp, and allow it to edit anything in that folder? Or is there an easier way to edit that with another account?

Best Answer

edit /etc/vsftpd.conf and remove # from local_enable=YES, write_enable=YES and chroot_list_enable=YES.

now enter this to terminal sudo touch /etc/vsftp.chroot_list

and finally edit /etc/vsftp.chroot_list and add one user per line.