LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-09-2007, 11:47 PM   #1
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Rep: Reputation: 16
vsftpd virtual users


I'm trying to set vsftpd up with virtual users. I've been poking around various how-tos and have yet to be successful. here is the output of the files that I am using:

/etc/pam.d/vsftpd:
#%PAM-1.0
auth required pam_pwdfile.so pwdfile /etc/vsftpd/passwd
account required pam_permit.so

#session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user sense=allow file=/etc/vsftpd/ftpusers onerr=succeed
#auth required pam_shells.so
#auth include system-auth
#account include system-auth
#session include system-auth
session required pam_loginuid.so


(made with htpasswd)
/etc/vsftpd/passwd:
bob:L1hoRLK5BJJnA

/etc/vsftpd/vsftpd.conf:
this one is long but the things that I have changed are:
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
user_sub_token=$USER
local_root=/var/www/sites/$USER
guest_enable=YES
guest_username=ftp


I might have missed one or two somewhere in there.

finally if I try logging in with bob I get this:
ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (127.0.0.1:root): bob
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.


I've been banging my head on this one for awhile. without much success. I've been restarting the vsftpd every time I do something, and it does seem that the pam is connected (when I comment out the first two lines I can login with local users). I'm really lost on this one, and any help would be awesome.

Thank you much,
Michael
 
  


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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
FC5, vsftpd and Virtual Users deadlock Fedora 0 11-13-2006 11:09 AM
vsftpd and virtual users chrull Linux - Software 0 05-14-2004 05:09 PM
vsftpd and virtual users poweroff Linux - General 0 02-26-2004 07:04 AM
vsftpd and virtual users JeffV Linux - Software 2 11-14-2003 09:47 AM

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

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