Pure-ftpd umask not being set correctly

Vliegtuig

Well-Known Member
Jan 21, 2010
74
2
58
Hi everyone,

It seems the pure-ftpd umask setting is not being handled correctly, which causes SuPHP to trip over my default file permissions.

umask setting in /etc/pure-ftpd.conf:

Code:
Umask 133:022
Startup script output:

Code:
Starting pure-config.pl: Running: /usr/sbin/pure-ftpd -O clf:/var/log/xferlog --daemonize -A -c50 -B -C8 -D -E -fftp -H -I15 -lextauth:/var/run/ftpd.sock -L10000:8 -m4 -s -U133:022 -u100 -i -Oxferlog:/usr/local/apache/domlogs/ftpxferlog -k99 -Z -Y1 -JHIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3
In the above configuration, I would expect files to have 0744 and directories to have 0755, but they are being set as 666 and 777.

Any ideas what is going wrong here?
 

Vliegtuig

Well-Known Member
Jan 21, 2010
74
2
58
I am handling PHP5 by SuPHP.

The problem is not a SuPHP one; newly created files through FTP get the wrong umasks.