LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2005, 12:29 PM   #1
scooger
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Question vsftpd 2.0.3 ftp authentication failing for local user



Running Fedora Core 1
vsftpd 2.0.3
vsftpd.conf:
listen=YES
max_clients=50
max_per_ip=4
local_enable=YES
write_enable=YES
local_umask=022
anonymous_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
hide_ids=YES
ls_recurse_enable=NO
ascii_download_enable=NO
async_abor_enable=NO
xferlog_enable=YES
connect_from_port_20=YES
idle_session_timeout=120
data_connection_timeout=300
accept_timeout=60
connect_timeout=60
ftpd_banner=Welcome to FTP
check_shell=YES
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/permit_users
Problem:
If I configure the server to be anonymous, it works fine.
I attempt to log on as a Local user that is permitted by the "permit_users" userlist and the user authentication fails at the password phase (Reference Example). (Ruled out userlist as causing this: 1. I tested users not in the "permit_users" userlist which were aborted before the password stage and the permitted users were prompted for a password. (working correctly) 2. I also disabled the "userlist_enable" and received the same results (therefore the userlist is not the problem)).
Example:
ftp> o localhost
Connected to localhost (127.0.0.1).
220 Welcome to FTP
Name (localhost:user): user2
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.

Questions:
1. What type of authentication does vsftp use for local users? Is it PAM? I would rather not manage the users through berkely database. I would rather use the local users and groups already built in.
2. Am I missing something in the vsftpd.conf?
 
Old 05-17-2005, 10:48 AM   #2
scooger
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Fixed

I started from ground zero retracing my steps. I referenced back to the builddefs.h and saw that I had PAM configured as define (#define VSF_BUILD_PAM). I went ahead and modified it to be #undef VSF_BUILD_PAM and then ran the make to rebuild the binary.
After that I tweaked the vsftpdconf parmemter check_shell to YES. After performing these steps, I was able to log the user in successfully.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsFTPd local user can't create directories nuzzy Linux - Software 11 12-04-2011 10:45 PM
LDAP Authentication w/ Local User Information Adrian W Linux - Security 13 08-17-2004 11:09 AM
ftp server user authentication jwijesundra Linux - Networking 0 07-10-2004 01:13 PM
Unable to login as local user with vsftpd running on the server kairamr Linux - Newbie 1 06-09-2004 02:25 PM
Local user authentication fails when eth0 is up... patapon Linux - Security 1 12-17-2001 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration