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 |
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 & |
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 |
Quote:
|
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 |
All times are GMT -5. The time now is 03:48 AM. |