Friday, January 15, 2010

Apache umask permission

SkyHi @ Friday, January 15, 2010
[root@home /etc/sysconfig]# cat httpd
# Configuration file for the httpd service.

#
# The default processing model (MPM) is the process-based
# 'prefork' model.  A thread-based model, 'worker', is also
# available, but does not work with some modules (such as PHP).
# The service must be stopped before changing this variable.
#
#HTTPD=/usr/sbin/httpd.worker

#
# To pass additional options (for instance, -D definitions) to the
# httpd binary at startup, set OPTIONS here.
#
#OPTIONS=

#
# By default, the httpd process is started in the C locale; to
# change the locale in which the server runs, the HTTPD_LANG
# variable can be set.
#
#HTTPD_LANG=C
##May 12 2009
##apache file permission
umask 002


[root@home html]# ls -l /var/www/html/
total 16192
-rw-rw-r--  1 user2 user2      19       Oct 21 13:09 404.html
-rw-rw-r--  1 user2 user2       11976 Jan 13 13:35 About.html