Proftpd não pode criar pasta

1

Deseja: criar pasta e carregar arquivo com www-data: www-data usuário
Tentativa atual: Crie uma pasta, envie um arquivo com ftp: nogroup e filezilla
Resultado: Mesmo com ftp: nogroup pode carregar o arquivo, mas não pode criar pasta
Ação: Tente criar uma nova pasta por ftp
Resultado: permissão negada

Com o Debian 9 e o ACL ativados sem o SELINUX.
Ao instalar WP Hide & Security Enhancer é necessário um serviço de ftp apontando para a instalação do wordpress.

Permissões de pasta:

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

SAÍDA DE DEPURAÇÃO:

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 não pode criar pasta

    
por Mark 01.06.2018 / 02:22

0 respostas