Add users to vsftpd?
I am trying to add users to 'vsftpd' using the command:
useradd -m -s /bin/false newuser
but when I try to connect afterward (using Filezilla), I receive the following error:
Command: USER newuser <br> Answer: 530 This FTP server is anonymous only
What can I do to tell the server to let users login?
4 Replies
Hello,
I looked into this a bit and it seems that the relevant setting here may live in
/etc/vsftpd.conf
I would try opening this file with your preferred editor (e.g. nano, vi, etc) and looking for the line that says:
local_enable=YES
Make sure that this line is not commented (line starts with a '#'). If it is, it will look something like this:
# local_enable=YES
Just remove the '#' and save the file. It may be necessary to restart vsftpd before the change takes effect, but I could not find anything that confirms nor denies this theory, so if it's not working right after hitting save, give that a try.
Regards,<br> Tom D.<br> Linode Support Team
We have this setting.
Does not help.
Commenting out the following line in /etc/pam.d/vsftpd should allow you to log in with /bin/false set. Having this line enabled only allows ftp logins from shells listed in /etc/shells. You can read more about this here:
auth required pam_shells.so
Alternatively, and probably safer, you could add /bin/false to /etc/shells.
Also, /sbin/nologin should be included in your /etc/shells by default and should work out of the box depending on the requirements.
We have new error.
500 OOPS: cannot read user list file:/etc/vsftpd.userlist