php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25594 chmod does not handle sticky bits/setuid/setgid
Submitted: 2003-09-18 11:25 UTC Modified: 2003-09-18 12:06 UTC
From: shofmann at databay dot de Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.3.1 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: shofmann at databay dot de
New email:
PHP Version: OS:

 

 [2003-09-18 11:25 UTC] shofmann at databay dot de
Description:
------------
consider this:

mkdir ("test",02755) creates a directory with the permissions 'drwxrwsr−x'.

ok.

But chmod("test",02775) results in 'drwxrwxr−x'.

No matter which values I choose, sticky bits/setuid/setgid are ignored by chmod.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-18 11:27 UTC] shofmann at databay dot de
Sorry, the 'minus' is translated into unicode during submission process.

'drwxrwsr−x' is read as 'drwxrwsr-x' and
'drwxrwxr−x' should be 'drwxrwxr-x'.
 [2003-09-18 12:06 UTC] shofmann at databay dot de
ups, this issue is caused by a safe mode restriction and I have safe mode activated :-)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 14:01:34 2025 UTC