LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-29-2007, 01:06 PM   #1
GavB
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
Need help setting up virtual users with pure-ftpd


Hi,

I am trying to install pure-ftpd with virtual users and it looks like I'm almost there but am getting access denied errors when trying to log in. I'll go through everything that I've done so far:

To install..

./configure --with-everything
make
make install

I then set up a group and user (ftpgroup and ftpuser) as described here

I then set up a virtual user like this:

pure-pw useradd vusername -u ftpuser -d /path/to/user/files

It looks like it has worked because the following line has been added to /etc/pureftpd.passwd

vusername:<encrypted password>:500:500::/path/to/user/files/./::::::::::::

and when I run pure-pw show vusername it shows all of the user info. The problem is that when I log in via ftp, I get "530 Login authentication failed".

Does anyone have any idea how to get this running? any help would be appreciated.

Thanks for reading

EDIT: I am running CentOS by the way if that makes a difference

Last edited by GavB; 10-29-2007 at 01:08 PM. Reason: PS note
 
Old 10-30-2007, 09:28 AM   #2
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
I've worked it out now, just for anyone that searches with the same problem in future, here is what I did:

After setting up the users, run the following command:

pure-pw mkdb

(I'm not sure if you have to run that command after each time you make changes to users or just once)

then stop pure-ftpd (I just did killall pure-ftpd) and run:

/usr/local/sbin/pure-ftpd -j -lpuredb:/etc/pureftpd.pdb &
 
Old 07-27-2009, 11:48 AM   #3
lukaszp
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
I did what you have written here but instead used /etc/init.d/pure-ftpd restart to restart the server. I did not change anything and my virtual users are still not accepted.

I have the user created with pure-pw adduser. That user has a valid home directory and a password set. I have executed pure-pw mkdb after creating the user. I have also enabled PureDB in the /etc/pure-ftpd.conf file so the option looks like this

PureDB /etc/pureftpd.pdb

Is there any conflict if I'm also using PAM authentication at the same time? There's associated (I think) option:

ExtAuth /var/run/ftpd.sock

Should I disable this authentication module?

Thanks for any help you can spare
 
Old 08-07-2009, 05:26 AM   #4
Andy_m
LQ Newbie
 
Registered: Aug 2009
Location: England
Distribution: CentOS 5.3
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by GavB View Post
I've worked it out now, just for anyone that searches with the same problem in future, here is what I did:

After setting up the users, run the following command:

pure-pw mkdb

(I'm not sure if you have to run that command after each time you make changes to users or just once)

then stop pure-ftpd (I just did killall pure-ftpd) and run:

/usr/local/sbin/pure-ftpd -j -lpuredb:/etc/pureftpd.pdb &
This worked for me, although I stopped pure-ftpd this way "service pure-ftpd stop" and then did start when finished. Thank You
 
Old 08-07-2009, 05:52 AM   #5
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
I have a very dated, and FreeBSD-centric page on it. (Very slow site, I fear, and not always up, but...)

http://www.scottro.net/qnd/qnd-pureftpd.html
 
  


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
Can't enable virtual users on pure-ftpd G-Fox Linux - Networking 1 03-25-2010 04:51 PM
Can I use virtual users with pure-ftpd started from initd? G-Fox Linux - Software 0 06-03-2005 03:40 AM
pure-ftpd and virtual servers mozilla Linux - Networking 1 05-03-2005 06:35 AM
pure-ftpd virtual users problem stofferthebest Linux - Networking 0 04-12-2004 03:59 AM
"./configure --with-virtualchroot" breaks virtual users in pure-ftpd icarus24 Linux - Networking 2 11-09-2003 05:21 PM

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

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