vsftpd: cannot locate user specified in 'ftp_username':ftp
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Before running I added the user ftp to /etc/passwd. I checked it by "su - ftp". It works.
How did you add the user in /etc/passwd? If you edit the file and add the user by hand, you should do the same for /etc/shadow.
Also "su - ftp" shouldn't work, because you don't have to give that user a valid shell.
How did you add the user in /etc/passwd? If you edit the file and add the user by hand, you should do the same for /etc/shadow.
Also "su - ftp" shouldn't work, because you don't have to give that user a valid shell.
The user ftp was created by: adduser -h /var/ftp ftp
But after doing so, no line was added to /etc/shadow.
On my CentOS PC the line in /etc/passwd is:
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
and in /etc/shadow is:
ftp:*:14471:0:99999:7:::
Should I use those lines exactly in my embedded linux ?
I don't know what the problem is, but from the function name, I guess it complains because it cannot find a password for the user ftp.
Anyway doing a little search I came accross thisregarding the 1st problem.
Quote:
Problem: When trying to ftp into the slug, it gives a message 500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp""
Solution: Change the echo line in /unslung/rc.xinetd to: echo "ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf" >>/etc/inetd.conf
It seems the cause to the problem was the toolchain I used. The original toolchain I used was created with Dan Kegel's crosstool 0.43. It was based on old kernel header files (2.6.12).
When I created the toolchain with crosstool-ng, it worked fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.