Bug #13299 Updated: mkdir([DIR], 0777); wont set file permission

From: Date: Fri, 14 Sep 2001 16:17:02 +0000
Subject: Bug #13299 Updated: mkdir([DIR], 0777); wont set file permission
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65940@lists.php.net to get a copy of this message
ID: 13299 User updated by: designs@minds-eye-media.co.uk Reported By: designs@minds-eye-media.co.uk Old Status: Open Status: Closed Bug Type: Directory function related Operating System: Linux PHP Version: 4.0.6 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2001-09-14 11:01:12] designs@minds-eye-media.co.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 08:10:53] hholzgra@php.net sticky bits set on the directory you try to create it in ? ------------------------------------------------------------------------ [2001-09-14 07:49:44] designs@minds-eye-media.co.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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13299&edit=1

« previous php.dev (#65940) next »