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
 [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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC