LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   vsftpd 530 login incorrect (https://www.linuxquestions.org/questions/slackware-14/vsftpd-530-login-incorrect-449432/)

pocon 05-28-2006 06:38 PM

vsftpd 530 login incorrect
 
Hi Folks,

I'm trying to setup vsftpd, looks like I'm partly there because I'm able to connect - I'm just not able to login.

I have this line in my vsftpd.conf file: local_enable=YES
If I'm not mistaken this is supposed to enable local users to login with their accounts.

I also have taken these steps from the root account:

Code:

# groupadd ftp-users
# mkdir /home/ftp-docs
# chmod 750 /home/ftp-docs
# chown root:ftp-users /home/ftp-docs
# useradd -g ftp-users -d /home/ftp-docs user1
# passwd user1 ( and of course assigned a password )

Next I copied a file into /home/ftp-docs

Finally issued thes commands:

Code:

# chown root:ftp-users /home/ftp-docs/*
# chmod 740 /home/ftp-docs/*

At this point I restarted the server.

Here's what happens when I try to connect:

ftp 192.168.0.199
Connected to 192.168.0.199.
220 Slackbox FTP
User (192.168.0.199:(none)): user1
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>

I know the user1 acounts was actually created, because I'm able to logon to the machine locally with it, just not via ftp.

Any idea what I'm missing?

Thanks,
Paul

imagineers7 05-29-2006 02:09 AM

Hi paul,

Your vsftpd.conf should look like this:-

#anonymous_enable=YES
local_enable=YES
write_enable=YES
pam_service_name=vsftpd
userlist_enable=YES

Also check /etc/vsftpd/user_list and /etc/ftpusers

This will allow the local users to access their home directories via ftp

Bye


Aniruddha

cwwilson721 05-29-2006 02:15 AM

Quote:

Originally Posted by imagineers7
Hi paul,

Your vsftpd.conf should look like this:-

#anonymous_enable=YES
local_enable=YES
write_enable=YES
pam_service_name=vsftpd
userlist_enable=YES

Also check /etc/vsftpd/user_list and /etc/ftpusers

This will allow the local users to access their home directories via ftp

Bye

If you don't have gnome installed (10.2 doesn't even have it) pam is not on your system anyway.

(One of the problems of different distros. What one has, another doesn't)

imagineers7 05-29-2006 02:26 AM

Hi cwwilson,

Thanks, I did not know it because I've never used slcakbox

Anyway thanks,



Aniruddha

pocon 05-29-2006 11:17 PM

What I needed to do was add check_shell=NO to the vpsftpd.conf
Worked like a charm.

Thanks for the help, it started me in the right direction.

Paul

edenCC 10-30-2006 02:25 AM

pam_service_name=vsftpd
I've tried, when using vsftpd-1.1.3-8(default version for redhat-9) and vsftpd-2.0.5, if you dont specify this parameter, you'll get a

530 Login incorrect.
Login failed.

Seems to be a bug =.=

oppiet30 12-13-2011 09:22 PM

Actually it isn't a bug. Try putting /bin/bash in your /etc/shells file.

Catfish023 03-08-2012 07:30 AM

Oppiet30 Thank you SO much!!! I set up a new FTP server, moved over all my users from the old server, and could NOT get them to log in... But I had a special shell named for all of them and forgot to put it in to /etc/shells... Instant fix! Thanks a bunch!

arr219p 07-31-2015 07:28 AM

vsftp login
 
Verify the users shell does not point to a symbolic link.

kikinovak 07-31-2015 03:19 PM

Quote:

Originally Posted by imagineers7 (Post 2267452)
Hi cwwilson,

Thanks, I did not know it because I've never used slcakbox

Why on earth would you answer a question about a Slackware-specific configuration when you can't even spell half of the distribution's name correctly?

kikinovak 07-31-2015 03:21 PM

Quote:

Originally Posted by pocon (Post 2267007)
Any idea what I'm missing?

Thanks,
Paul

Found this in my old HOWTO archives. Setting up VSFTPD on Slackware.

https://github.com/kikinovak/slackwa.../FTP-HOWTO.txt

Cheers,

Niki

bassmadrigal 07-31-2015 03:56 PM

Niki, this was a necro from 2 1/2 years ago.


All times are GMT -5. The time now is 07:07 AM.