LINUX.ORG.RU
ФорумAdmin

proftpd issue


0

0

Не могу завести анонимный Proftpd.

Конфиг такой:
================================/
ServerName "FtpServer"
ServerType standalone
DefaultServer on
RequireValidShell off
UseFtpUsers off
AuthPAM off
AuthPAMConfig ftp
DirFakeMode 1
SystemLog /var/log/proftpd.log
Port 21
Umask 022
MaxInstances 30
MaxClientsPerHost 2
User ftp
Group ftp
TimeoutStalled 300
TimeoutNoTransfer 20
TimeoutLogin 20
IdentLookups off
UseReverseDNS off
AllowRetrieveRestart on
AllowStoreRestart on
DelayEngine off
DefaultRoot ~

<Global>
RootLogin off
</Global>

<Anonymous /mnt/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 20 "Sorry, max %m users -- try again later"
DisplayLogin welcome.msg
DisplayFirstChdir .message
AnonRequirePassword off
AllowOverwrite on

<Limit LOGIN>
AllowAll
</Limit>

<Limit WRITE>
DenyAll
</Limit>
<Directory incoming/*>
<Limit READ DELE MKD RMD XMKD XRMD>
DenyAll
</Limit>
<Limit STOR CWD XCWD>
AllowAll
</Limit>
</Directory>
</Anonymous>
================================/

ps faux:
ftp 19956 0.0 0.3 7592 1392 ? Ss 18:15 0:00 proftpd: (accepting connections)

================================/

Пытаюсь присоединиться:
NcFTP 3.1.9 (Mar 24, 2005) by Mike Gleason (http://www.NcFTP.com/contact/).
Connecting to 192.168.4.19...
ProFTPD 1.3.0 Server (FtpServer) [192.168.4.19]
Unable to set anonymous privileges.
Login incorrect.
Sleeping 19 seconds..
================================/

В логах:
ftp: Directory /mnt/ftp/ is not accessible.

================================/

la -la /mnt/
drwxr-xr-x 6 ftp ftp 4096 Авг 7 19:41 ftp


В чем проблема ?

anonymous

Ответ на: комментарий от anonymous

для начала сделай так cp /bin/false /bin/ftp echo "/bin/ftp" >> /etc/shells пропиши пользователю ftp оболочку /bin/ftp

Попробуй, может поможет, но у меня проблемы не решило, и я уже склоняюсь к тому, что там какой-то баг!

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.