Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To install execute the following command: `sudo apt install vsftpd`
- Make backup of the **/etc/vsftpd.conf** by executing: `sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak`.
- Clear all from the **/etc/vsftpd.conf** and paste the following lines:
- ```
- listen=YES
- anon_root=/srv/ftp/public
- anonymous_enable=YES
- no_anon_password=YES
- write_enable=YES
- anon_upload_enable=YES
- anon_mkdir_write_enable=YES
- anon_other_write_enable=YES
- anon_world_readable_only=YES
- dirmessage_enable=YES
- hide_ids=YES
- ftp_username=ftp
- ```
- Create a public anonymous folder in the directory **/srv/ftp** and set permissions by executing:
- ```bash
- sudo mkdir /srv/ftp/public
- sudo chmod 775 /srv/ftp/public
- sudo chown nobody:nogroup /srv/ftp/public
- ```
- Also create folder to upload files by executing:
- ```bash
- sudo mkdir /srv/ftp/public/upload
- sudo chmod 755 /srv/ftp/public/upload
- sudo chown ftp:root /srv/ftp/public
- ```
- After that, you can download files from *root* at FTP and upload files to directory *upload*.
- Additional
- ----------
- You may wish to disable FTP server by default, to do that execute:
- ```bash
- sudo service vsftpd disable
- ```
- To start FTP server until reboot, execute:
- ```
- sudo service vsftpd start
- ```
- You can create symbolic link to the ftp public folder in the *Destop* folder by executing:
- ```bash
- ln -s /srv/ftp/public ~/Desktop/ftp_share
- ```
Add Comment
Please, Sign In to add comment