umask at boot time ?

From: <maurice.steyvers_at_ICA.UNIMAAS.NL>
Date: Wed, 11 Aug 1999 11:22:19 +0200

We have the following "problem".
When the script /sbin/init.d/httpd runs at boot time the umask
appears to be different then when i run the same script (as user root) at
run time.
At boot time the umask appears to be 077, at run time our default umask (for
user
root) is 022.
This effect leads to our problem: we use cgi scripts that create files.
After a reboot the created files have a protection rw-r--r--.
When httpd is stopped and started at run time it inherits a umask of
022 and the newly created files have a protection of rw------- (which
is what we want).

My question is:is the default umask at boot time indeed 077 ?





_______________________________________________

Maurice Steyvers, ICA, Universiteit Maastricht

mailto:maurice.steyvers_at_ica.unimaas.nl
phone :(++ 31 43) 388 23 49
Fax :(++ 31 43) 361 42 87
_______________________________________________
Received on Wed Aug 11 1999 - 09:55:11 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT