Link to home
Start Free TrialLog in
Avatar of TheASP
TheASP

asked on

VSFTP Server Setup

I am having a bit of trouble with the VSFTP configuration. Basically, if I try and log in with a created user and the correct password, it says authorization failed. My configuration file is as follows (minus comments) full file (with comments) at http://24.72.35.15/vsftpd.conf. It is based off some how-to or another.

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=nobody
ascii_upload_enable=YES
ftpd_banner=Welcome dude.
listen=YES
chroot_local_user=YES

Any suggestions?
Avatar of da99rmd
da99rmd

try starting vsftp with -d for debug or -v for verbouse and look att the err mess.

or try reading the log an maybe increasing the logging.

/Rob
Avatar of TheASP

ASKER

I've decided to go with proftp. Thanks for you time, though.

ASP
What do you have in the file /etc/pam.d/vsftpd ?

It should show the following :

#%PAM-1.0

# Uncomment this to achieve what used to be ftpd -A.
# auth       required     pam_listfile.so item=user sense=allow file=/etc/ftpchroot onerr=fail

auth     required       pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
# Uncomment the following line for anonymous ftp.
#auth    sufficient     pam_ftp.so
auth     required       pam_unix2.so
auth     required       pam_shells.so
account  required       pam_unix2.so
password required       pam_unix2.so
session  required       pam_unix2.so

This also means that your users must have a shell which is listed in /etc/shells.

If you do not want that, comment out the line :

auth     required       pam_shells.so

Avatar of TheASP

ASKER

I installed ProFTPD instead. Thanks for trying to help.

(Requested refund)

ASP
ASKER CERTIFIED SOLUTION
Avatar of PashaMod
PashaMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial