php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6641 Permissions not being set correctly
Submitted: 2000-09-09 13:12 UTC Modified: 2000-09-10 20:21 UTC
From: jbdamask at earthlink dot net Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.2 OS: Red Hat Linux 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
31 + 1 = ?
Subscribe to this entry?

 
 [2000-09-09 13:12 UTC] jbdamask at earthlink dot net
1) Attempt the following script from a web browser:
mkdir("dir/name", 0777)

2) Then log into your server and go to the directory.
Running ls -l indicates a file perm equivelent to 0755. Basically I can't set write permissions to group or user.

2a) If I immediately follow this with:
chmod("dir/name", 0777) the permissions are set correctly.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-09 18:53 UTC] joey@php.net
Have you checked your umask lately?

http://www.php.net/manual/function.umask.php
 [2000-09-10 00:20 UTC] joey@php.net
Have you checked your umask lately?

http://www.php.net/manual/function.umask.php
 [2000-09-10 20:21 UTC] joey@php.net
umask
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 13:01:29 2024 UTC