httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Wort <...@pobox.com>
Subject Re: [users@httpd] Automatically chmod files
Date Fri, 14 Feb 2003 01:52:48 GMT
On Thu, 13 Feb 2003, Webmaster wrote:

> Is it possible that when a file is created under a certain directory
> that is automatically chmod to 700 instead of 644 when it is created?

the permissions of a file on creation are determined by the umask setting
for the user creating the file. a umask value of 066 will create files
with -rw------- (600) permissions. the execute bit is not typically set
by umask for files, only directories.

i would assume you are writing a file via some script and i have found it
easier to set permissions via the script creating the file.

there maybe some apache function for umask but i am unaware of it.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=        Inkling Research Inc.      =
=    Tim.Wort@InklingResearch.com   =
=        Tim.Wort@pobox.com         =
=                                   =
=        Eschew Obfuscation         =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message