note 69113 added to function.chmod
| From: | DOT) | Date: | Wed, 23 Aug 2006 16:44:16 +0000 |
| Subject: | note 69113 added to function.chmod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116231@lists.php.net to get a copy of this message | ||
As noted in a previous post, to use a four-digit chmod (e.g. 1777), you must add a zero to the
beginning (01777).
I also discovered this with sgid on directories (02770).
By the way, sgid on dirs is a fantastic way to ensure the group "sticks" on all newly
create files and directories created inside that one. That way all members of a particular group
can edit files without using 777 permissions.
To use sgid on directories, use 02XXX (where XXX is the normal permissions e.g. 770 (best security)
or 775 (OK) or 777 (terrible security) or 771 (world users can traverse the directory to get to a
subdirectory where they have rights)).
TenThousandDollarOffer.com
----
Server IP: 216.194.113.175
Probable Submitter: 216.140.242.85
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.chmod.php
Edit -- https://master.php.net/note/edit/69113
Del: integrated -- https://master.php.net/note/delete/69113/integrated
Del: useless -- https://master.php.net/note/delete/69113/useless
Del: bad code -- https://master.php.net/note/delete/69113/bad+code
Del: spam -- https://master.php.net/note/delete/69113/spam
Del: non-english -- https://master.php.net/note/delete/69113/non-english
Del: in docs -- https://master.php.net/note/delete/69113/in+docs
Del: other reasons-- https://master.php.net/note/delete/69113
Reject -- https://master.php.net/note/reject/69113
Search -- https://master.php.net/manage/user-notes.php