Server Fault is a question and answer site for system and network administrators. 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

I'm start getting this message when i'm trying to run vsftpd

500 oops bad bool value in config file for anonymous_enable

Relevant part from the vsftpd.conf file:

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
# Uncomment this to allow local users to log in.

When i'm commenting the anonymous_enable=YES, then i got the same error on the following line local_enable=YES

500 oops bad bool value in config file for local_enable
share|improve this question
up vote 5 down vote accepted

This can be caused by having trailing space at the end of the line. Check that there is no whitespace after "YES". If that isn't the case check that you don't have Windows CRLF line endings.

The following sed command will remove any trailing space and CR characters from the specified file:

sed -i 's,\r,,;s, *$,,' /etc/vsftpd.conf
share|improve this answer
No spaces, how can I check the windows line ending? – udidu Oct 26 '12 at 10:58
@udidu I've added a command to removing trailing space and CR characters from files. – mgorven Oct 26 '12 at 17:26

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.