Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES

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
add comment

1 Answer

up vote 2 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
add comment

Your Answer

 
discard

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.