Page 1 of 1

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

Posted: Wed Dec 28, 2005 2:01 pm
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
}