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:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 9:48 AM
To: [EMAIL PROTECTED]
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

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to