Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] proftpd problem: Server started, but unaccessible
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hmalissa
n00b
n00b


Joined: 23 Jan 2007
Posts: 20

PostPosted: Thu Mar 01, 2007 12:56 pm    Post subject: [SOLVED] proftpd problem: Server started, but unaccessible Reply with quote

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
View user's profile Send private message
robodeath
n00b
n00b


Joined: 02 Jan 2006
Posts: 60
Location: Rome, GA

PostPosted: Thu Mar 01, 2007 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
hmalissa
n00b
n00b


Joined: 23 Jan 2007
Posts: 20

PostPosted: Thu Mar 01, 2007 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
robodeath
n00b
n00b


Joined: 02 Jan 2006
Posts: 60
Location: Rome, GA

PostPosted: Thu Mar 01, 2007 2:56 pm    Post subject: Reply with quote

Quote:
This disables the user login generally - in the anonymous section it's enabled again.


Ah gotcha, makes sense now.
Back to top
View user's profile Send private message
robodeath
n00b
n00b


Joined: 02 Jan 2006
Posts: 60
Location: Rome, GA

PostPosted: Thu Mar 01, 2007 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
hmalissa
n00b
n00b


Joined: 23 Jan 2007
Posts: 20

PostPosted: Thu Mar 01, 2007 3:17 pm    Post subject: Reply with quote

Thanks, that did it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum