httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Wort <>
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.      =
=   =
=         =
=                                   =
=        Eschew Obfuscation         =

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message