Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-06-2005, 07:44 AM
|
#1
|
LQ Newbie
Registered: Feb 2005
Location: UK
Posts: 2
Rep:
|
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.
|
|
|
02-06-2005, 08:19 AM
|
#2
|
Member
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323
Rep:
|
How have you setup vstpd? paste the config file....
|
|
|
02-06-2005, 09:26 AM
|
#3
|
LQ Newbie
Registered: Feb 2005
Location: UK
Posts: 2
Original Poster
Rep:
|
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
|
|
|
07-26-2006, 11:14 PM
|
#4
|
LQ Newbie
Registered: Feb 2004
Location: Sydney
Distribution: FC4
Posts: 29
Rep:
|
I am having the same rpoblem.
Did you find a solution???
|
|
|
09-21-2006, 04:04 PM
|
#5
|
LQ Newbie
Registered: Sep 2006
Posts: 7
Rep:
|
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
|
|
|
03-14-2010, 06:33 PM
|
#6
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 12:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|