Hallo,
yes, you are right. system umask is 0022
But php-function umask(); solves the problem
without changing global environment.
Thanks
Andre
----- Original Message -----
Sent: Wednesday, June 25, 2008 4:28
PM
Subject: Re: chmod problem
with mkdir()
Andre,
Verify the system umask setting. Most systems
default to a umask of 022 which could explain your 755 setting.
Jesse
Jesse Santana Project Lead - Enterprise Services
Group Information Technology Services California State University, Long
Beach 1250 Bellflower Blvd. Long Beach, CA 90840 Office:
(562)985-8511 Fax: (562)985-8855
From:
| Andre Hübner
<andre.huebner@xxxxxx>
|
To:
| <php-install@xxxxxxxxxxxxx>
|
Date:
| 06/25/2008 05:00 AM
|
Subject:
| chmod problem with
mkdir() |
Hello List,
i have a problem with simple
script that uses mkdir();
mkdir("/path/path/folder", 0777);
The
highest chmod i get in created folder is 755, the 777 is ignored, but less
chmod like 705 accepted. What could be wrong? Of course i can use chmod()
after mkdir() but i think function should do what it is
promising... script is running with php-cli 5.2.6 Thank
you Andre
|