vsftpd: cannot locate user specified in 'ftp_username':ftp

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

vsftpd: cannot locate user specified in 'ftp_username':ftp

Post by ^rooker »

[PROBLEM]
When starting vsftpd from xinetd, no errors or warnings are shown in the logs and xinetd seems to be running fine.

But when trying to access the ftp server, the connection is refused with this errormessage:
500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp
Changing the option "ftp_username" in vsftpd.conf seems to be completely ignored.


[SOLUTION]
In my case, vsftpd did not automatically find its config file (which was "/etc/vsftpd/vsftpd.conf"), so it loaded its defaults which don't work with xinetd.

So simply provide the position of the proper vsftpd.conf file within the xinetd-config for vsftp by setting "server_args". Here's what my /etc/xinetd.d/vsftpd looks like:

Code: Select all

service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/vsftpd
        server_args             = /etc/vsftpd/vsftpd.conf
        nice                    = 10
        disable                 = no
}
Post Reply