In this tutorial I will show you how to manage FTP Server (vsftpd) authenticated user configuration on Ubuntu Server. You will see how you can connect to a virtual machine through FTP using an operating system user by properly configure a site in FileZilla. Also, you will see how you can download and upload files through FileZilla and what vsftpd configurations you will have to do in order to achieve this.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# FTP Server (vsftpd) Authenticated user configuration on Ubuntu Server vagrant ssh # FileZilla # File / Site Manager... / New Site # Name: http.liviubalan.com (FTP login) # Host: http.liviubalan.com # Protocol: FTP - File Transfer Protocol # Encryption: Use plain FTP # Logon Type: Normal # User: <see provision-shell/resources/var.sh::LIV_USR_ADM_USER|LIV_USR_WWW_USER> # Password: <see provision-shell/resources/var.sh::LIV_USR_ADM_PWD|LIV_USR_WWW_PWD> # Remote site: /var/www/http.liviubalan.com ls -l /var/www/ # Remote site: Right click on a file / Download # Local site: Right click on a file / Upload # 550 Permission denied. sudo vi /etc/vsftpd.conf write_enable=YES # Restart vsftpd sudo service vsftpd restart # FileZilla / Reconnect # FileZilla / Refresh # Local site: Right click on a file / Upload # 550 Permission denied # Edit / Clear private data # Quick clear private data: FileZilla / Reopen # Man page man vsftpd man vsftpd.conf # Useful links https://help.ubuntu.com/lts/serverguide/ftp-server.html http://vsftpd.beasts.org/vsftpd_conf.html http://manpages.ubuntu.com/manpages/trusty/en/man5/vsftpd.conf.5.html https://github.com/liviubalan/liviubalan.com-vagrant-ubuntu |
Useful links:
https://help.ubuntu.com/lts/serverguide/ftp-server.html
http://vsftpd.beasts.org/vsftpd_conf.html
http://manpages.ubuntu.com/manpages/trusty/en/man5/vsftpd.conf.5.html
https://github.com/liviubalan/liviubalan.com-vagrant-ubuntu