LinuxQuestions.org
Visit Jeremy's Blog.
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 07-19-2004, 07:24 AM   #1
Cmdr_K00n
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Rep: Reputation: 0
VSFTPD virtual users pam problem


Hey Everyone..!
First time setting up an ftp server..
Basicly I wanted to be able to give usernames and passes to some of my mates, without system accounts being given. For tghis i have come to beleive that virtualousers is the way to go..
Anyways I hvae used the documentation to try to get this working.. ie built the database and so on.. ut whenever i try to use one of the virtual users i get a pam error telling me that the user/pass is invalid...
here are my configs..


cat /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
pam_service_name=vsftpd
write_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
chroot_local_user=YES
guest_enable=YES
guest_username=virtual
background=NO
listen=NO
listen_port=21
pasv_min_port=30000
pasv_max_port=30999
root@Nakamura1700XP etc #

Can anyone help?
Im using the default users.txt file for the input...

tom
foo
fred
bar


And getting the errors.. in /var/log/messages
root@Nakamura1700XP etc # tail /var/log/messages
Jul 19 21:27:06 Nakamura1700XP xinetd[10644]: START: ftp pid=12439 from=127.0.0.1
Jul 19 21:27:06 Nakamura1700XP vsftpd(pam_unix)[12439]: check pass; user unknown
Jul 19 21:27:06 Nakamura1700XP vsftpd(pam_unix)[12439]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=127.0.0.1
Jul 19 21:27:09 Nakamura1700XP xinetd[10644]: EXIT: ftp pid=12439 duration=3(sec)

/etc/xinetd.d/vsftpd
# vsftpd is the secure FTP server.
service ftp
{
disable = no
only_from = 0.0.0.0
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
per_source = 1
instances = 3
banner_fail = /etc/vsftpd/vsftpd.busy_banner
log_on_success += PID HOST DURATION
log_on_failure += HOST
nice = 10

}

and using db4.1 command..
root@Nakamura1700XP vsftpd # db4.1_load -T -t hash -f logins.txt /etc/vsftpd_login.db


Help?

Last edited by Cmdr_K00n; 07-19-2004 at 07:32 AM.
 
Old 07-26-2006, 11:16 PM   #2
zoropio
LQ Newbie
 
Registered: Feb 2004
Location: Sydney
Distribution: FC4
Posts: 29

Rep: Reputation: 15
Did you find the problem? as i am having the same issues :-(
 
Old 10-19-2007, 02:44 AM   #3
carpo_tk
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
These guys needed to put
Quote:
auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd_login
in /etc/pam.d/vsftpd
and make sure there is /etc/vsftpd_login.db file, containg user credentials (username/pass), usually made by db_load - see vsftpd EXAMPLES dir.
 
  


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
[SOLVED] How to enable BOTH virtual & local vsftpd logins with PAM? quasidynamic Linux - Software 3 08-12-2010 01:00 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
vsftpd + pam + virtual users - Pam cannot load database file. mdkelly069 Linux - Networking 3 09-23-2004 12:07 AM
vsftpd and virtual users chrull Linux - Software 0 05-14-2004 06:09 PM
VSFTPD virtual user login using pam.d problem exalik Linux - Networking 3 11-07-2003 05:29 PM

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

All times are GMT -5. The time now is 08:29 PM.

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