pure-ftpd virtual user issue
All virtual users of pure-ftpd can't login although I configured them without any error message!
Login error message: Code:
220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- Code:
mbnoimi-pc conf # apt-get install pure-ftpd |
Bump
|
Hi,
There is no "-lpuredb:/etc/pureftpd.pdb" among the other runtime options. As this looks like a debian box, have a look at this howto for details Regards |
Quote:
I tried to add it through but nothing changed! Code:
mbnoimi@mbnoimi-pc ~ $ sudo pure-pw mkdb |
Quote:
Code:
mbnoimi-pc mbnoimi # pure-pw useradd test1 -u ftpuser -d /home/ftpusers/test1 I want to use virtual users |
I'm not running Debian, but according to the howto, you need to disable PAM and (maybe) Unix auth
Also you have to create a symlink Code:
#cd /etc/pure-ftpd/auth |
Quote:
|
Quote:
Try to run it directly from CLI: Code:
/usr/sbin/pure-ftpd -l -j -x -X -C 3 -Y 0 -H -Ipuredb:/etc/pureftpd.pdb 5 -R -E -u 1000 -U 007:007 -A -O clf:/var/log/pure-ftpd/transfer.log -8 UTF-8 -c 10 -B |
Code:
mbnoimi-pc mbnoimi # /usr/sbin/pure-ftpd -l -j -x -X -C 3 -Y 0 -H -Ipuredb:/etc/pureftpd.pdb 5 -R -E -u 1000 -U 007:007 -A -O clf:/var/log/pure-ftpd/transfer.log -8 UTF-8 -c 10 -B |
My bad. I left an extra -l, sorry
Code:
/usr/sbin/pure-ftpd -j -x -X -C 3 -Y 0 -H -Ipuredb:/etc/pureftpd.pdb 5 -R -E -u 1000 -U 007:007 -A -O clf:/var/log/pure-ftpd/transfer.log -8 UTF-8 -c 10 -B |
Quote:
Code:
220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- |
Where is pureftpd.pdb located? Note that you need to use that location in /etc/pure-ftpd/conf/PureDB
Also, are you sure about the user/password? Change it with: Code:
pure-pw passwd test You can also run the server with less options and in debug mode to check virtual users. Use the correct location of pureftpd.pdb below: Code:
/usr/sbin/pure-ftpd -I puredb:/etc/pure-ftpd/pureftpd.pdb -x -E -j -R -d |
Quote:
Quote:
Code:
mbnoimi-pc mbnoimi # pure-pw passwd test Quote:
Code:
mbnoimi-pc mbnoimi # /usr/sbin/pure-ftpd -I puredb:/etc/pure-ftpd/pureftpd.pdb -x -E -j -R -d |
Quote:
Quote:
|
Quote:
Code:
mbnoimi-pc mbnoimi # /usr/sbin/pure-ftpd -I puredb:/etc/pure-ftpd/pureftpd.pdb -x -E -j -R -d |
Quote:
|
There are no details at all!!!
Code:
mbnoimi@mbnoimi-pc /var/log/pure-ftpd $ ls -s |
Quote:
Dunno what logfile debian uses, but you can check /var/log/messages, /var/log/syslog, /var/log/debug, etc. |
Quote:
You may have done all that I am about to share, so if you have, then, I'm not certain what the problem is. The next step is to go to the auth directory and create a symlink named "50pure" that links to ../conf/PureDB Code:
root@server auth # ln -sv ../conf/PureDB ./50pure First, the ftp store with a folder for 3 virtual users: Code:
root@server ~ # mkdir -p /srv/ftp/vuser{1,2,3} Code:
root@server ~ # useradd -U -M -d /srv/ftp -s /dev/null ftpuser Code:
root@server ~ # chown -R ftpuser:ftpuser /srv/ftp Code:
root@server ~ # pure-pw useradd vuser1 -u ftpuser -g ftpuser -d /srv/ftp/vuser1 Code:
root@server ~ # pure-pw mkdb |
I trid the mentioedn above but I got these issues:
Code:
mbnoimi@mbnoimi-pc ~ $ sudo mkdir -p /srv/ftp/vuser{1,2,3} |
Quote:
Regarding the last (non-root) uid and gid error, most likely it's being caused by the lack of the group, ftpuser, though on rare occasions, you have to actually be root rather than use sudo to put in virtual users attached to non-login accounts. Considering the other errors you are getting, however, the nonexistent group is more likely the issue. Back to the first issue: You might just check what groups are assigned to ftpuser, and just use one of those instead, or create the ftpuser group and add it as ftpuser's main group. Code:
root@server ~ # groups ftpuser Code:
root@server ~ # groupadd ftpuser Hope that helps. |
I did exactly what you said but it didn't work too!!!
PS As you can see I could run "pure-pw useradd" after adding the group "ftpuser" as you said above. Code:
mbnoimi-pc mbnoimi # mkdir -p /srv/ftp/vuser{1,2,3} |
Quote:
|
Quote:
|
Quote:
Code:
# Configuration for pure-ftpd |
Thanks a lot for your efforts, I replaced pureftpd with proftpd and find the last one much easier to use (it worked within 10 min)
Thanks once again. |
All times are GMT -5. The time now is 07:58 PM. |