Helo everybody.
Distribution: Fedora Core 2.
Service: proftpd compiled by myself:
Code:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --enable-shadow \
--with-modules=mod_tls:mod_ratio:mod_readme:mod_quotatab:mod_quotatab_file:mod_ifsession:mod_wrap && \
make && \
make install
I run proftpd by xinetd:
Code:
service ftp
{
disable = no
flags = REUSE
socket_type = stream
instances = 50
wait = no
user = root
server = /usr/sbin/proftpd
log_on_success = HOST PID
log_on_failure = HOST
}
My proftpd.conf file:
Code:
ServerName "ProFTPD Default Installation"
ServerType inetd
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User nobody
Group nobody
DefaultRoot ~
AllowOverwrite on
<Limit SITE_CHMOD>
DenyAll
</Limit>
<Anonymous ~ftp>
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
I create also ftp home directory with rights:
Code:
# ls -l /var |grep ftp
drwxr-xr-x 2 root ftp 4096 Dec 12 12:10 ftp
There is no iptables on this machine.
And now... the problem is...
When I try to log on anonymous account from the same machine and try to do simple ls command:
Code:
# ncftp localhost
NcFTP 3.1.7 (Jan 07, 2004) by Mike Gleason (http://www.NcFTP.com/contact/).
Connecting to 127.0.0.1...
ProFTPD 1.2.10 Server (ProFTPD Default Installation) [127.0.0.1]
Logging in...
Anonymous access granted, restrictions apply.
Logged in to localhost.
ncftp / > ls
Remote host has closed the connection.
List failed.
ncftp>
...
But when I try to login from another host on network everything is OK. I can list files from anonymous account.
If I make a addition user account and try to log on it from localhost everything is ok also. I have only problem with login as anonymous from the same machine.
What it could be?
Best regards.