php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13299 mkdir([DIR], 0777); wont set file permission
Submitted: 2001-09-14 07:49 UTC Modified: 2001-09-14 12:17 UTC
From: designs at minds-eye-media dot co dot uk Assigned:
Status: Closed Package: Directory function related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: designs at minds-eye-media dot co dot uk
New email:
PHP Version: OS:

 

 [2001-09-14 07:49 UTC] designs at minds-eye-media dot co dot uk
When adding directories the line

mkdir([DIRNAME]. 0777);

will not create a directory with permissions other than root. Attempted using command with umask(0000); but made no difference.

PHP is denied permission to set these privileges. How is this fixed?

PHP 4.0.6 was compiled on my Raq3 as an Apache module.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-14 08:10 UTC] hholzgra@php.net
sticky bits set on the directory you try to create it in ?
 [2001-09-14 11:01 UTC] designs at minds-eye-media dot co dot uk
sticky bit of directory I try to create it in are set are set to '2 joey' as default. The directory created by PHP sets a sticky bit of '2 httpd' with no permission other than root.

so you think it's a sticky problem then?
 [2001-09-14 12:17 UTC] designs at minds-eye-media dot co dot uk
Problem solved.

Clearly not a bug as it can be alleviated by setting the sticky with mkdir([DIR], 01777);

However, unusual as this workaround has not been needed on other systems we use. Thanks for the quick turnaround.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 24 17:01:29 2024 UTC