The Ftp server is used for file management and sharing. The purpose of installation is to provide lab resources. Anonymous Users have the upload and download permissions. Assume that the server name labserver1.UbuntuServer is used to install the ftp service vsftpd $ sudoapt-getinstallvsftpd // vsftp (VerySecureFTP ).
The Ftp server is used for file management and sharing. The purpose of installation is to provide lab resources. Anonymous Users have the upload and download permissions. Assume that the server name is labserver.
1. Install the ftp service vsftpd on Ubuntu Server
$ Sudo apt-get install vsftpd // vsftp (Very Secure FTP) is a Secure, fast, and stable FTP server in Unix/Linux.
In this case, you can use ftp: // labserver to enter the ftp space, but the content is blank. Currently, you only have the download permission. The folder created after vsftpd is installed is in/srv/ftp/, which is the space shared by ftp.
2. modify the configuration file. The vsfptd. conf file can be used to modify the relevant permissions. For lab purposes, the permission is granted to anonymous users: Anonymous Users have the permission to upload, download, and create folders.
$ Sudo vi/etc/vsftpd. conf
Focus on the following settings:
Anonymous_enable = YES // enable Anonymous User Login
Local_enable = YES // Allow Local Account Login
Write_enable = YES // enable the write permission. Set the permissions as follows:
Anon_upload_enable = YES // enable the anonymous upload permission
Anon_mkdir_write_enable = YES // enable Anonymous Folder creation
3. Modify the folder permissions of the ftp server space. Assume that the/srv/ftp directory contains two folders: ApplicationTools and Entertainments. The authorization method is as follows:
$ Sudo chmod 755/srv/ftp // read the ftp Space
$ Sudo chmod 777-R/srv/ftp/ApplicationTools // Read and Write Permissions
$ Sudo chmod 777-R/srv/ftp/Entertainments // Read and Write Permissions
4. Restart the ftp service and log on to labserver anonymously using the ftp software.
$ Sudo/etc/init. d/vsftpd restart