500 oops bad bool value in config file for anonymous_enable
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
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