Page 1 of 1

"additional FTP" not working - fix

Posted: Thu Nov 02, 2017 11:42 pm
by erythro
Don't know if this helps anyone else, but I've been banging my head against the wall with this issue.

I don't think I've done anything unusual with my vesta set up - standard install as possible on a DO VPS.

Created a user with the "additional ftp" option in the gui, and was getting

Code: Select all

530 Login incorrect
errors trying to log in. Username and password were perfect, believe me I checked!

Eventually, I found that adding /sbin/nologin to /etc/shells made the difference. /usr/sbin/nologin was already there.

I was tipped off that this was the issue because when I tried logging in with SFTP out of desperation auth.log mentioned that wasn't a valid shell. I don't know if this counts a bug, or if I did something wrong after all, or if it just helps someone but I thought I'd put it somewhere online in case it does.

Re: "additional FTP" not working - fix

Posted: Fri Nov 03, 2017 6:42 pm
by mehargags
What does your log say ?

Code: Select all

tail -f  /var/log/vsftpd.log

Re: "additional FTP" not working - fix

Posted: Sun Dec 09, 2018 12:52 pm
by peterb
I don't know why but this worked for me too

adding to etc/shell
/sbin/nologin

Centos 7/64

Otherwise I was continually confronted with the wrong password, even though I'd checked it umpteen times.

Re: "additional FTP" not working - fix

Posted: Wed Dec 12, 2018 6:09 pm
by ruturaaj
Yes, I confirm. CentOS 7.5 and the /sbin/nologin to /etc/shells worked for me.

Re: "additional FTP" not working - fix

Posted: Thu Jan 03, 2019 8:57 am
by Alex Connor
the contents of the /etc/shells file should be as follows

Code: Select all

/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin

Re: "additional FTP" not working - fix

Posted: Wed Jan 09, 2019 4:08 pm
by realjumy
mehargags wrote:
Fri Nov 03, 2017 6:42 pm
What does your log say ?

Code: Select all

tail -f  /var/log/vsftpd.log
I can't connect even after adding the new routes.

Mine says:

Code: Select all

Wed Jan  9 16:06:51 2019 [pid 2134] [admin_user] OK LOGIN: Client "XXX.XXX.XXX.XXX"