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. the problem with configuring etc/vsftpd. conf is: 1. how to restart vsftpd: sudo/etc/init. d/vsftpdrestart2 folder permissions in
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.