A specific user is unable to log in to vsftpd

Posted by HackToHell on Server Fault See other posts from Server Fault or by HackToHell
Published on 2012-10-02T15:26:23Z Indexed on 2012/10/02 15:39 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

I am setting up a new user let his name be ftpguy. He has access to only one directory /var/www/xxx. I have already chowned the directory so that he has write and read privileges. The user is also unable to login via ssh as I have disabled that by changing his shell to /sbin/nologin.

Also, in vsftpd config, I have enabled the chroot_local_user. Now whenever I log in from ftp, i get an auth error.

Connect socket #1008 to xxxxxxxx, port 21...   
220 Welcome to blah FTP service.  
USER ftpguy  
331 Please specify the password.  
PASS **********  
530 Login incorrect.

I changed the password to something different several times, using the passwd command, nothing happens, i still the above error.

However I am able to log in with my ssh creditals to my ftp server without any problems.(I do not use a key).

© Server Fault or respective owner

A specific user is unable to log in to vsftpd

Posted by HackToHell on Ask Ubuntu See other posts from Ask Ubuntu or by HackToHell
Published on 2012-10-02T02:59:23Z Indexed on 2012/10/02 3:55 UTC
Read the original article Hit count: 330

Filed under:
|
|
|
|

I am setting up a new user let his name be ftpguy. He has access to only one directory /var/www/xxx. I have already chowned the directory so that he has write and read privileges. The user is also unable to login via ssh as I have disabled that by changing his shell to /sbin/nologin.

Also, in vsftpd config, I have enabled the chroot_local_user. Now whenever I log in from ftp, i get an auth error.

Connect socket #1008 to xxxxxxxx, port 21...
220 Welcome to blah FTP service.
USER ftpguy
331 Please specify the password.
PASS ****
530 Login incorrect.

I changed the password to something different several times, using the passwd command, nothing happens, i still the above error.

However I am able to log in with my ssh creditals to my ftp server without any problems.(I do not use a key).

© Ask Ubuntu or respective owner

Related posts about ubuntu-10.04

Related posts about login