Назад | Перейти на главную страницу

Proftpd не может создать папку

Требуется: создать папку и загрузить файл с www-data: www-data пользователь
Текущая попытка: создать папку, загрузить файл с ftp: nogroup и filezilla
Результат: Даже с ftp: nogroup можно загрузить файл, но не могу создать папку
Действие: Попробуйте создать новую папку по ftp.
Результат: в доступе отказано

С Debian 9 и включенным ACL без SELINUX.
При установке WP Hide & Security Enhancer необходим ftp-сервис, указывающий на установку wordpress.


Права доступа к папке:

777 drwxrwxrwx  5 ftp      nogroup  4096 May 30 12:12 /var/www/html  

ВЫХОД ОТЛАДКИ:

dispatching PRE_CMD command 'MKD myNewFolder' to mod_exec  
dispatching PRE_CMD command 'MKD myNewFolder' to mod_rewrite  
dispatching PRE_CMD command 'MKD myNewFolder' to mod_tls  
dispatching PRE_CMD command 'MKD myNewFolder' to mod_core  
dispatching PRE_CMD command 'MKD myNewFolder' to mod_core  
dispatching PRE_CMD command 'MKD myNewFolder' to mod_quotatab  
dispatching CMD command 'MKD myNewFolder' to mod_core  
in dir_check(): setting umask to 0666 (was 0666)  

chmod(/.abcDEFGHIJKLM) failed: Permission denied  

dispatching POST_CMD_ERR command 'MKD myNewFolder' to mod_exec  
dispatching POST_CMD_ERR command 'MKD myNewFolder' to mod_quotatab  
dispatching LOG_CMD_ERR command 'MKD myNewFolder' to mod_log  
dispatching PRE_CMD command 'MKD /myNewFolder' to mod_exec  
dispatching PRE_CMD command 'MKD /myNewFolder' to mod_rewrite  
dispatching PRE_CMD command 'MKD /myNewFolder' to mod_tls  
dispatching PRE_CMD command 'MKD /myNewFolder' to mod_core  
dispatching PRE_CMD command 'MKD /myNewFolder' to mod_core  
dispatching PRE_CMD command 'MKD /myNewFolder' to mod_quotatab  
dispatching CMD command 'MKD /myNewFolder' to mod_core  
in dir_check(): setting umask to 0666 (was 0666)  

chmod(/.abcDEFGHIJKLM) failed: Permission denied  

dispatching POST_CMD_ERR command 'MKD /myNewFolder' to mod_exec  
dispatching POST_CMD_ERR command 'MKD /myNewFolder' to mod_quotatab  
dispatching LOG_CMD_ERR command 'MKD /myNewFolder' to mod_log  

scrubbing scoreboard  
ROOT PRIVS at scoreboard.c:1541  
RELINQUISH PRIVS at scoreboard.c:1544  
ROOT PRIVS at scoreboard.c:1575  
RELINQUISH PRIVS at scoreboard.c:1681  
finished scrubbing scoreboard  

proftpd.conf:

Include /etc/proftpd/modules.conf  
UseIPv6 off  
IdentLookups off  
ServerName "myServerName"  
ServerType standalone  
DeferWelcome off  
MultilineRFC2228 on  
DefaultServer on  
ShowSymlinks on  
TimeoutNoTransfer 600  
TimeoutStalled 600  
TimeoutIdle 1200  
DisplayLogin welcome.msg  
DisplayChdir .message true  
ListOptions "-l"  
DenyFilter \*.*/  
DefaultRoot /var/www/html  
RequireValidShell off  
Port 21  
<IfModule mod_dynmasq.c></IfModule>  
MaxInstances 30  
User ftp  
Group nogroup  
Umask 666 666  
AllowOverwrite on  
TransferLog /var/log/proftpd/xferlog  
SystemLog /var/log/proftpd/proftpd.log  
<IfModule mod_quotatab.c>  
    QuotaEngine off  
</IfModule>  
<IfModule mod_ratio.c>  
    Ratios off  
</IfModule>  
<IfModule mod_delay.c>  
    DelayEngine on  
</IfModule>  
<IfModule mod_ctrls.c>  
    ControlsEngine off  
    ControlsMaxClients 2  
    ControlsLog /var/log/proftpd/controls.log  
    ControlsInterval 5  
    ControlsSocket /var/run/proftpd/proftpd.sock  
</IfModule>  
<IfModule mod_ctrls_admin.c>  
    AdminControlsEngine off  
</IfModule>  
<Anonymous /var/www/html>  
    User ftp  
    Group nogroup  
    UserAlias anonymous ftp  
    DirFakeUser on ftp  
    DirFakeGroup on ftp  
    RequireValidShell off  
    MaxClients 10  
    DisplayLogin welcome.msg  
    DisplayChdir .message  
    <Directory *>  
        <Limit WRITE READ>  
            AllowAll  
        </Limit>  
    </Directory>  
    <Directory incoming>  
        Umask 022 022  
        <Limit READ WRITE>  
            AllowAll  
        </Limit>  
        <Limit STOR CWD MKD RMD DELE XRMD XMKD>  
            AllowAll  
        </Limit>  
    </Directory>   
</Anonymous>  
Include /etc/proftpd/conf.d/    

Proftpd не может создать папку