Задача: создавать файлы из Apache с маской 0660.

Попытка решения: 
Ставим apache2-mod_umask, настраиваем 
/etc/httpd2/conf/mods-enabled/umask.conf

 UMask 0002

перечитываем конфигурацию.

Результат выполнения test.php
<?php file_put_contents('file', ''); ?>

-rw-r--r-- 1 apache2 webmaster    0 Фев 28 19:35 file

В Ubuntu (http://ubuntuforums.org/showthread.php?t=549457) советуют 

 So add "umask 002" to /etc/apache2/envars and restart Apache.

Как у нас установить umask 002 для Apache2?

-- 
Андрей Черепанов
ALT Linux
[email protected]

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Sysadmins mailing list
[email protected]
https://lists.altlinux.org/mailman/listinfo/sysadmins

Ответить