Can't able to get local logins work in both vsftpd and proftpd. Initially I had proftpd, tried everything I could find in the internet, but could'nt succeed. I always get login incorrect even though I am sure that login and passsword exist in /etc/passwd. I also changed AuthOrder to use mod_auth_linux.c.
Anonymous works but local logins as in /etc/passwd does not.
Then I downloaded and installed vsftpd but still the same problem. I did local_enable=YES for local logins
Looks like I am doing something fundamentally wrong. Please help, struggling for 2 days and have searched lot in the internet but coudl not find anything
Do I need to do something with /etc/pam.d/vsftpd or /etc/pam.d/proftpd
They both are same and looks like
#%PAM-1.0
session optional pam_keyinit.so force revoke
auth include password-auth
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required pam_shells.so
account include password-auth
session required pam_loginuid.so
session include password-auth
vsftpd.conf is as follows
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
# When SELinux is enforcing check for SE bool ftp_home_dir
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#