vsftpd file service enables anonymous accounts

One configuration vsftpd.conf file

anonymous_enable=YES
write_enable=YES
listen=YES
After configuration, execute the following command to restart the vsftpd server
[root@localhost vsftpd]# systemctl restart vsftpd.service
 
Two anonymous account login test

 
Three test instructions
  • Name (localhost:root): anonymous
        Indicates an anonymous account login.
  • ftp> ls
        List the directory of the anonymous account on the FTP server.
  • ftp> cd pub
        Change directory, enter the pub folder
  • ftp> get hello.txt
        Download the hello.txt file in the pub folder with an anonymous account.
  • ftp> !ls
        Shows whether the file just downloaded has been downloaded to the local.
  • ftp> put vsftpd.conf_bak
        The anonymous account failed to upload the file, and the anonymous account is not allowed to upload the file.
  • ftp> mkdir test
        An anonymous account failed to create a folder. An anonymous account is not allowed to create a folder.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326476114&siteId=291194637