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
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: jbdamask at earthlink dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 01:01:30 2024 UTC