vsftpd login incorrect

  • Posted July 6, 2013

I just installed vsftpd on my vps, I setup a root folder and added a user. But whenever I connect I get login password incorrect.

I changed the password many times but that did not help

sudo passwd myusername

I also checked if my username is present in /etc/passwd and it’s there.

I restarted both vsftpd and the machine. Nothing works.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Try this : <br> <br>In vsftpd.conf <br> <br>Make the following change : pam_service_name=ftp

Great it works for me pam_service_name=ftp

@Kamal Nasser <br> <br>Wasn’t me who needed help :)

Thank you Kamal. That last command fixed it. <br> <br>One last thing, how can I create a new username?

@stefan: You have to move your site to /home/reddit/files if you want to chroot the user. <br> <br>mkdir /home/reddit/files <br>mv /home/reddit/* /home/reddit/files && mv /home/reddit/.* /home/reddit/files <br>chown root:root /home/reddit && chmod 755 /home/reddit <br> <br>Run these commands and you should be able to log in via ftp.

try the guide maybe there is something that need linking before it works… It has been to long ago i can tell. Sorry

Yes. But I did not mkdir because I already had my site running under /home/reddit/

Now I’m getting this <br> <br>Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()