RE: [PHP-INST] Default files permissions

From: Date: Tue, 05 Feb 2002 11:01:15 +0000
Subject: RE: [PHP-INST] Default files permissions
Groups: php.install 
Request: Send a blank email to php-install+get-5925@lists.php.net to get a copy of this message
Hi, A possible solution, have not had the problem myself: If you are running linux/unix, then it is probably your nobody user, or whatever user you have for running apache, that is writing the file. That user has an umask that needs to be changed to e.g. 022. The umask sets the default permissions on new files created by that user. See /etc/profile or the users .profile or .cshrc. Good luck Richard -----Original Message----- From: Marc Mendez [mailto:mendez@lug.com] Sent: Tuesday, February 05, 2002 9:48 AM To: php-install@lists.php.net Subject: [PHP-INST] Default files permissions Hi, I have an Apache server running with Suse 7.0 One of our customer wrote a php file that writes a file on the disk server. The trouble is that the file permissions are read/write/execute for everybody !! How can I prevent PHP from setting any file permissions ?? Thanks ! -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.install (#5925) next »