Hi.
I have proftpd 1.3.1_rc2-rc3 up and running with an anonymous user tech (alias of ftp) with password.
My objective is to have all files uploaded by tech
chown to apache:apache because the ftp account will be used to host web pages (html , php).
This is /etc/proftpd/proftpd.conf:
Code:
ServerName "NG-001"
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM on
AuthPAMConfig ftp
UseReverseDNS off
IdentLookups off
Port 21
PassivePorts 51000 51999
Umask 022
MaxClients 20
MaxInstances 20
MaxLoginAttempts 3
RootLogin off
Port 21
PassivePorts 51000 51999
Umask 022
MaxClients 20
MaxInstances 20
MaxLoginAttempts 3
RootLogin off
ServerAdmin support@noisebleed.pt
SystemLog /var/log/proftpd.log
ServerLog /var/log/proftpd.server.log
TransferLog /var/log/proftpd.transfer.log
User ftp
Group ftp
DefaultRoot ~
<Directory />
AllowOverwrite on
</Directory>
<Anonymous /var/www/tech>
User ftp
Group ftp
UserAlias tech ftp
AnonRequirePassword on
RequireValidShell off
MaxClients 10
DisplayLogin "message.txt"
DisplayChdir .message
GroupOwner apache
UserOwner apache
<Limit LOGIN>
AllowUser ftp
DenyAll
</Limit>
# Hide all files owned by user 'root'
HideUser root
<Limit READ WRITE DIRS STOR CWD CDUP>
AllowUser ftp
DenyAll
</Limit>
</Anonymous>
When running proftpd with
this is showned:
Code:
noisebleed.localnet (10.17.1.19[10.17.1.19]) - chown(/Logo_Noisebleed_Oficial.png) as root failed: Operation not permitted
I have proftpd compiled with:
Code:
USE="mysql ncurses nls opensslcrypt pam radius ssl tcpd -acl -authfile -clamav -hardened -ifsession -ipv6 -ldap -noauthunix -postgres -rewrite (-selinux) -shaper -sitemisc -softquota -vroot -xinetd"
Does anyone got the UserOwner directive working properly?