LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't login to ProFTPd (https://www.linuxquestions.org/questions/linux-networking-3/cant-login-to-proftpd-334024/)

Martin Strand 06-15-2005 07:26 PM

Can't login to ProFTPd
 
I set up ProFTPd and got it working fine with anonymous logins 'upload' 'download' and 'anonymous' in three different directories:
Code:

ServerName                      "ProFTPD"
ServerType                      standalone
DefaultServer                  on
Port                            21
ServerLog                      /www/ftp/log
Umask                          022

MaxInstances                    10
User                            ftp
Group                          upload

AllowOverwrite                  off

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

<Anonymous ~ftp>

  UserAlias                    upload ftp
  UserAlias                    download ftp
  UserAlias                    anonymous ftp

  MaxClients                    10
  UserDirRoot                  On
  AuthAliasOnly                on
  RequireValidShell            off

</Anonymous>

But now I can't log in for some reason:
Code:

# ftp localhost
Connected to localhost.
220 ProFTPD 1.3.0rc1 Server (ProFTPD) [127.0.0.1]
Name (localhost:root): anonymous
421 Service not available, remote server has closed connection

The log only says:
Code:

(localhost[127.0.0.1]): FTP session opened.
(localhost[127.0.0.1]): ProFTPD terminating (signal 11)
(localhost[127.0.0.1]): FTP session closed.

I've tried restarting several times with no luck. Weird thing is, everything worked fine until a few days ago. I didn't change any configuration or anything though, it just stopped working.
Help?

trickykid 06-15-2005 09:54 PM

Logs? Errors in logs? Have you tried restarting it? And why are you using telnet to test your proftpd connection? telnet doesn't have any idea who anonymous is just cause your using port 21.. why don't you test it by using an ftp client or using ftp from the command line.. :rolleyes:

Martin Strand 06-16-2005 04:11 AM

Well, the log doesn't say anything:
Code:

(localhost[127.0.0.1]): FTP session opened.
(localhost[127.0.0.1]): ProFTPD terminating (signal 11)
(localhost[127.0.0.1]): FTP session closed.

Rather frustrating... :(

Martin Strand 06-16-2005 10:39 AM

Ok, deleted ProFTPd and recompiled it with the same options and now it works using the exact same config.
Problem not solved but at least it's gone. ;)

trickykid 06-16-2005 10:46 AM

Quote:

Originally posted by Martin Strand
Ok, deleted ProFTPd and recompiled it with the same options and now it works using the exact same config.
Problem not solved but at least it's gone. ;)

Why are you uninstalling and reinstalling though? Did you try a simple restart first? A simple kill -HUP might have done the trick.. and I'm still baffled why your testing it using the telnet command. Why don't you actually try to use FTP instead to test a FTP server.. :rolleyes:

Martin Strand 06-16-2005 10:55 AM

I did use ftp, I tried restarting several times and I also checked all logs. I just couldn't come to a solution, so I started from scratch again.
I have no idea why it works now, as far as I know I didn't change anything - the compilation options are the same, the configuration file is the same, all affected files and dirs are still owned by the same users... Aargh.

Thanks anyway. :)

Martin Strand 06-16-2005 11:00 AM

btw, I don't see why I wouldn't be able to test with telnet, it works just fine: :confused:
Code:

# telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ProFTPD 1.3.0rc1 Server (ProFTPD) [127.0.0.1]
USER upload
331 Anonymous login ok, send your complete email address as your password.
PASS user@domain.ext
230 Anonymous access granted, restrictions apply.
NOOP
200 NOOP command successful
QUIT
221 Goodbye.
Connection closed by foreign host.


tangle 06-16-2005 01:38 PM

I found this with a Google search. I am not sure if you did not compile it with the shadow option.

"received: PASS (hidden)"
"ProFTPD terminating (signal 11)"
This usually means that shadow passwd file support is required but was not compiled in. Try starting the build over at Step 2, adding either --enable-autoshadow or --enable-shadow to the configure command line.

cedarcreeksoftware 07-11-2005 10:59 PM

I was having the same problem - with 1.3.0rc1 . I installed it and it worked fine for a couple of days. Then it seemed to randomly give the 'Can't login' message. I tried restarting. Created a new account with a known password. Nothing worked. I installed 1.2.10 and it appears to be working again.


All times are GMT -5. The time now is 10:11 AM.