Today I want to learn how to install the FTP server in Ubuntu, using vsftpd software. 1. Use the new software package manager to install vsftpd. 2. Configure etc/vsftpd. conf encountered a problem: 1. How to restart vsftpd: sudo/etc/init. the permissions of the d/vsftpdrestart2 folder are in Ubuntu. When I want to copy files to/home/ftp
Today I want to learn how to install the FTP server in Ubuntu, using vsftpd software.
1. Use the new software package manager to install vsftpd.
2 configure etc/vsftpd. conf
The problem is
1. How to restart vsftpd: sudo/etc/init. d/vsftpd restart
2 folder Permissions
In Ubuntu, when I want to copy files to/home/ftp, the following command is executed if I find that my permissions are insufficient:
Sudo chmod 777 ftp can indeed copy files, but the ftp software cannot connect to the ftp server. The error is 500 OOPS: vsftpd: refusing to run with writable anonymous root.
Solution:
For the root directory/home/ftp of vsftpd, the permission is: drwxrwxrwx, that is, there is no limit (maybe the chmod 777/home/ftp is accidentally executed );
However, vsftpd does not allow/home/ftp for security reasons, which leads to the above error.
Therefore, we only need to make the following changes:
Chown root: root/home/ftp
Chmod 755/home/ftp
(If you do not Log On As A root user, you may need to add sudo before. Do not forget)
OK. The problem is resolved.