View previous topic :: View next topic |
Author |
Message |
john G n00b
Joined: 21 Jan 2003 Posts: 29 Location: St. Louis, MO
|
Posted: Thu Nov 13, 2003 11:11 pm Post subject: Pure-FTPd drops connections after authenticating |
|
|
Hello All
I'm unable to use Pure-FTPd because the the server immediately closes the connection after I authenticate to it. To eliminate any confusion with using the super server (xinetd), I'm trying to run the ftp daemon from the command line like:
Code: |
pure-ftpd -d -d -l pam -S pali.carenet.org,21 &
|
In another terminal (same machine):
What I see in /var/log/everything current is:
Code: |
Nov 13 17:03:33 [pure-ftpd] (?@pali.carenet.org) [INFO] New connection from pali.carenet.org
|
What I see in /var/log/ftpd/current is:
Code: |
Nov 13 17:03:33 [pure-ftpd] (?@pali.carenet.org) [INFO] New connection from pali.carenet.org
Nov 13 17:03:33 [pure-ftpd] (?@pali.carenet.org) [DEBUG] 220---------- Welcome to Pure-FTPd [TLS] ----------
Nov 13 17:03:33 [pure-ftpd] (?@pali.carenet.org) [DEBUG] 220-You are user number 1 of 50 allowed.
Nov 13 17:03:33 [pure-ftpd] (?@pali.carenet.org) [DEBUG] 220-Local time is now 17:03. Server port: 21.
Nov 13 17:03:33 [pure-ftpd] (?@pali.carenet.org) [DEBUG] 220 You will be disconnected after 15 minutes of inactivity.
Nov 13 17:03:36 [pure-ftpd] (?@pali.carenet.org) [DEBUG] Command [auth] [SSL]
Nov 13 17:03:36 [pure-ftpd] (?@pali.carenet.org) [DEBUG] 500 This security scheme is not implemented
Nov 13 17:03:36 [pure-ftpd] (?@pali.carenet.org) [DEBUG] Command [user] [jjg9419]
Nov 13 17:03:36 [pure-ftpd] (?@pali.carenet.org) [DEBUG] 331 User jjg9419 OK. Password required
Nov 13 17:03:39 [pure-ftpd] (?@pali.carenet.org) [DEBUG] Command [pass] [<*>]
|
What I see in the client terminal is:
Code: |
bash-2.05b$ ftp pali
Connected to pali.carenet.org.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 17:03. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Name (pali:jjg9419):
500 This security scheme is not implemented
SSL not available
331 User jjg9419 OK. Password required
Password:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory
ftp>
|
Nothing else shows up in any other logs.
I haven't found any specific documentation for this. I even went to the pureftpd website and read the documentation so I am obviously very desparate . Can anyone help me? Thanks in advance. |
|
Back to top |
|
|
StinkingMonkey Apprentice
Joined: 24 May 2003 Posts: 183 Location: UK
|
Posted: Sun Nov 16, 2003 5:27 am Post subject: |
|
|
out of curiosity are you running a virtual server ? reason i say this is because i can run pure-ftpd with the default directories located in /home/ftp but after setting up a virtual account with the root directory being /home/ftpusers/project i get the same error.
managed to solve my problem replaced AUTH = "-l unix" in /etc/conf.d/pure-ftpd to AUTH="-lpuredb:/etc/pureftpd.pdb", i followed the readme for virtual hosts on www.pureftpd.org. Theres also quite a few posts from people with the same problem, just do a search for pure-ftpd in forums, hope you get it sorted. |
|
Back to top |
|
|
john G n00b
Joined: 21 Jan 2003 Posts: 29 Location: St. Louis, MO
|
Posted: Mon Nov 17, 2003 7:18 pm Post subject: |
|
|
Thanks for the hints but, no I am not using virtual users. I just wanted to have the people with system accounts able to ftp, so I am using '-l pam' for authentication. Authentication seems to work anyway since I don't get any messages logged to /var/log/pwdfail/current and I do see them when I intentionally mistype a password. The server seems to close the socket immediately after authentication. |
|
Back to top |
|
|
Buzzz n00b
Joined: 17 Apr 2002 Posts: 63 Location: Enschede, The Netherlands
|
Posted: Mon Nov 17, 2003 8:47 pm Post subject: |
|
|
Are you using pure-ftpd 1.0.16b? That version has a bug with using pam as authentification. If you upgrade to 1.0.16c it should work perfectly! _________________ There are no stupid questions, but there are a lot of inquisitive idiots |
|
Back to top |
|
|
john G n00b
Joined: 21 Jan 2003 Posts: 29 Location: St. Louis, MO
|
Posted: Mon Nov 17, 2003 10:23 pm Post subject: RESOLVED |
|
|
Thanks. That was the problem. Interesting that was also broken for '-l unix' authentication too which was not in the bug report. |
|
Back to top |
|
|
|