LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-06-2005, 06:44 AM   #1
mikeseal
LQ Newbie
 
Registered: Feb 2005
Location: UK
Posts: 2

Rep: Reputation: 0
Question vsftpd pam authentication


I am running vsftpd (2.0.1 rel 5) on Fedora Core 3 and trying to setup PAM (0.77 rel 66.2) to provide virtual user authentication.

I have tried generating the db file using Berkeley DB version 3.x and 4.x

when I try to log into the ftp server I get the request to enter a username and password. what every account I try to log in as I get a 530 login incorrect.

I have looked at the /var/messages file and this shows the following error.

(pam_unix)[15522]: authentication failure; login= uid=0 euid=0 tty= ruser= rhost=192.168.0.1 user=user1

followed by

pam_userdb[15522]: user_lookup: could not open database `/etc/vsftpd_logins.db'


I have been trying for days to get this sorted and seem to be getting nowhere. Any help will be gladly appreciated.
 
Old 02-06-2005, 07:19 AM   #2
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
How have you setup vstpd? paste the config file....
 
Old 02-06-2005, 08:26 AM   #3
mikeseal
LQ Newbie
 
Registered: Feb 2005
Location: UK
Posts: 2

Original Poster
Rep: Reputation: 0
configuration files

config files as requested......


messages file
==========
Feb 6 12:02:29 server vsftpd(pam_unix)[15522]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=192.168.103.1 user=user1
Feb 6 12:02:29 server pam_userdb[15522]: user_lookup: could not open database `/etc/vsftpd_logins.db'

pam config file
==========
auth required /lib/security/pam_userdb.so db=/etc/vsftpd_logins.db
account required /lib/security/pam_userdb.so db=/etc/vsftpd_logins.db

vsftpd.conf
========
anon_world_readable_only=NO
anonymous_enable=NO
chroot_local_user=YES
guest_enable=YES
guest_username=virtual
hide_ids=YES
listen=YES
listen_address=192.168.103.248
local_enable=YES
max_clients=3
max_per_ip=1
nopriv_user=vsftp
pam_service_name=vsftpd
pasv_max_port=65535
pasv_min_port=64000
session_support=NO
use_localtime=YES
user_config_dir=/etc/vsftpd/users
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
xferlog_enable=YES
anon_umask=0027
async_abor_enable=YES
connect_from_port_20=YES
dirlist_enable=NO
download_enable=NO
 
Old 07-26-2006, 10:14 PM   #4
zoropio
LQ Newbie
 
Registered: Feb 2004
Location: Sydney
Distribution: FC4
Posts: 29

Rep: Reputation: 15
I am having the same rpoblem.

Did you find a solution???
 
Old 09-21-2006, 03:04 PM   #5
noobinacan
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
help us- we're melting

Help us - we're melting!
I got the same thing too. thanks

Connecting to 192.168.1.254:21
Connected to 192.168.1.254:21 in 0.000000 seconds, Waiting for Server Response
220 (vsFTPd 2.0.5)
Host type (1): Automatic Detect
USER Ninja
530 Permission denied.
USER Ninja
530 Permission denied
 
Old 03-14-2010, 05:33 PM   #6
Despot
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
Found a solution to this problem here: http://fixunix.com/debian/129361-pam...tpd-sarge.html

Turns out pam_user_db automatically appends ".db" to the filename that's given to the module as the "db" argument. If you name your database "/foo/bar/blah.db", put "/foo/bar/blah" as the module argument, and it should work.

Hopefully this'll help somebody!
 
  


Reply



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
Squid With PAM authentication paul_mat Linux - Networking 2 03-15-2011 12:47 PM
vsftpd + pam + virtual users - Pam cannot load database file. mdkelly069 Linux - Networking 3 09-22-2004 11:07 PM
PAM authentication failed qanopus Linux - Software 0 02-18-2004 02:26 PM
How does PAM Authentication Work? ejennings_98 Linux - Security 1 10-31-2003 02:29 PM
OpenSSH and PAM Authentication RyanP Linux - General 4 02-17-2001 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:09 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