ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] umask для Apache2
@ 2011-02-28 16:40 Андрей Черепанов
  2011-02-28 19:27 ` Afanasov Dmitry
  0 siblings, 1 reply; 6+ messages in thread
From: Андрей Черепанов @ 2011-02-28 16:40 UTC (permalink / raw)
  To: ALT Linux sysadmins' discussion

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Задача: создавать файлы из 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
cas@altlinux.ru

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-01 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-28 16:40 [Sysadmins] umask для Apache2 Андрей Черепанов
2011-02-28 19:27 ` Afanasov Dmitry
2011-02-28 20:42   ` Michael Shigorin
2011-02-28 20:53   ` Андрей Черепанов
2011-03-01 11:02     ` Sergey Vlasov
2011-03-01 17:03       ` Андрей Черепанов

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git