Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What line in which configuration files in the /etc/ftpd directory do I have to check to ensure that anonymous FTP has been disabled?

From my understanding now, to ensure that anonymous FTP is disabled, all the users assigned to the anonusers group in /etc/ftpd/ftpaccess has to be added to /etc/ftpd/ftpusers to deny them access.

Is there a simpler way?

share|improve this question

Adding guestserver to the ftpaccess file should disable anonymous FTP:

# echo "guestserver" >> /etc/ftpd/ftpaccess

Test it out by ftping to localhost and use anonymous as the user login; you should see it fail.:

530 Guest login not allowed on this machine.
Connection closed by remote host.

share|improve this answer
From an audit POV, what is the best way to test that anonymous access has been denied? – Terry Chia Nov 4 '12 at 4:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.