Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to set up a user "ftp" so they can upload and download files in my /home/httpd/mysite/public_html directory.

All files in public_html are owned by user "ftp" and in group "www-data" so the ftp user looks like so:

uid=108(ftp) gid=33(www-data) groups=33(www-data),65534(nogroup)

When I try to connect via an FTP client I get:

530 Login incorrect.
ftp: Login failed.

What do I need to uncomment/add to the proftpd.conf file to make this work?

share|improve this question

Just had this problem with Ubuntu 12.04.2 and ProFTP. I had my FTP user's shell set to /bin/false and ProFTP wouldn't allow that to connect (it showed Error 530).

What I did was followed I uncommented this on my /etc/proftpd/proftpd.conf:

RequireValidShell Off

And I also added /bin/false to my /etc/shells file.

Restart ProFTP and you're good!

Hope this saves someone time.

share|improve this answer

The error is mainly get when the user has a shell that is not listed in /etc/shells Make sure the /bin/false is declared into /etc/shells

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.