Q: How to Enable and Disable Anonymous access in vsftpd (FTP) server?
By enabling anonymous access in Linux FTP Server(vsFTPd) anyone can access the ftp server by using the username "Anonymous". so this anonymous user account will be enabled after doing this. But Its not secure in publicly accessible ftp servers. Disabling anonymous access is recommended.
[root@server ~]# vi /etc/vsftpd/vsftpd.conf
#in the 12th line edit line any of below two (uncomment the line if commented)
anonymous_enable=YES #(to enable anonymous access)
OR
anonymous_enable=NO #(to disable anonymous access)
# Now save the vsftpd.conf configuration file and Restart the vsftpd daemon
[root@server ~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
1 comments:
This actually isn't enough - you have to remove /var/ftp/ dir too.
Refer to https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/3/html/Security_Guide/s1-server-ftp.html for details.
Post a Comment