View previous topic :: View next topic |
Author |
Message |
hmalissa n00b

Joined: 23 Jan 2007 Posts: 20
|
Posted: Thu Mar 01, 2007 12:56 pm Post subject: [SOLVED] proftpd problem: Server started, but unaccessible |
|
|
I've installed proftpd, and use the following configuration file:
# cat /etc/proftpd/proftpd.conf
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp
Port 21
Umask 022
<Limit LOGIN>
DenyAll
</Limit>
User proftpd
Group proftpd
MaxInstances 30
<Anonymous ~ftp>
<Limit LOGIN>
AllowAll
</Limit>
MaxClients 5
User ftp
Group ftp
UserAlias anonymous ftp
<Limit WRITE>
DenyAll
</Limit>
<Directory uploads/*>
<Limit READ>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
This should set up a standard anonymous-only ftp server, with a separate uploads directory.
Then I start proftpd:
# /etc/init.d/proftpd start
* Starting proftpd ... [ ok ]
Looks good so far. Also
# /etc/init.d/proftpd status
* status: started
looks okay.
But if I log into a different computer, and try to access my server, it just doesn't work. I get
$ ftp myserver
Connected to myserver.
500 FTP server shut down (Wed Feb 28 14:24:15 2007 , Current connections will be dropped: Wed Feb 28 14:14:15 2007) -- please try again later
ftp>
all the time. What's going wrong? It once worked, but now it doesn't anymore...
Does proftpd log somewhere what it's doing? Is the config file okay?
Last edited by hmalissa on Thu Mar 01, 2007 3:16 pm; edited 1 time in total |
|
Back to top |
|
 |
robodeath n00b


Joined: 02 Jan 2006 Posts: 60 Location: Rome, GA
|
Posted: Thu Mar 01, 2007 2:42 pm Post subject: |
|
|
Quote: | <Limit LOGIN>
DenyAll
</Limit> |
I notice that that's not in a <Directory> tag, if I follow it correctly, I think this means 'deny all ftp commands to all on all directorys'. However, not being a proftpd expert, I don't know, but i'd try to remove that and see what happens. |
|
Back to top |
|
 |
hmalissa n00b

Joined: 23 Jan 2007 Posts: 20
|
Posted: Thu Mar 01, 2007 2:48 pm Post subject: |
|
|
I think it's correct. I had proftpd running using this configuration, but now it doesn't anymore. This disables the user login generally - in the anonymous section it's enabled again.
I removed these three lines and restarted my proftpd, but it didn't make any difference at all. So I put them back in.
I think there's something blocking proftpd from accepting connections, but I don't know what it is. |
|
Back to top |
|
 |
robodeath n00b


Joined: 02 Jan 2006 Posts: 60 Location: Rome, GA
|
Posted: Thu Mar 01, 2007 2:56 pm Post subject: |
|
|
Quote: | This disables the user login generally - in the anonymous section it's enabled again. |
Ah gotcha, makes sense now. |
|
Back to top |
|
 |
robodeath n00b


Joined: 02 Jan 2006 Posts: 60 Location: Rome, GA
|
Posted: Thu Mar 01, 2007 2:58 pm Post subject: |
|
|
Quote: | I found something very interesting.
There's a file named "shutmsg" in /etc that must be generated by ftpshut.
When this file is in /etc, proftpd refuses every connections and when I delete it, proftpd accepts. |
Found that, see if there is a /etc/shutmsg and move it somewhere else if it is (I don't like to delete things ) |
|
Back to top |
|
 |
hmalissa n00b

Joined: 23 Jan 2007 Posts: 20
|
Posted: Thu Mar 01, 2007 3:17 pm Post subject: |
|
|
Thanks, that did it. |
|
Back to top |
|
 |
|