You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Webmaster <we...@mastermindshosting.com> on 2003/02/14 01:16:15 UTC

[users@httpd] Automatically chmod files

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?

Re: [users@httpd] Automatically chmod files

Posted by Tim Wort <ti...@pobox.com>.
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