Re: Umask default value

From: Date: Sat, 06 Jan 2001 23:53:17 +0000
Subject: Re: Umask default value
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-33062@lists.php.net to get a copy of this message
Hello Egan, (E == "Egan") egan@sevenkings.net writes: E> I need my PHP default umask to be 027, since I do not want users E> creating files world readable unless they do so explicitly. E> I'm running Apache on Linux, and I've changed /etc/profile.local to E> 027 so all bash logins now get 027 by default. I also rebooted the E> server so any process getting umask via /etc/profile.local would E> see the new value. E> But PHP still starts with 022, and I did not see an .ini directive E> to control the default umask in PHP. E> Does PHP inherit umask from Apache? Does Apache inherit it from E> bash? I'd imagine that PHP inherits umask settings from the user the webserver is running as (Ie. nobody or www). -Brian -- Is it possible to feel gruntled?

« previous php.general (#33062) next »