note 69113 deleted from function.chmod by nlopess

From: Date: Thu, 31 Aug 2006 22:08:39 +0000
Subject: note 69113 deleted from function.chmod by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116569@lists.php.net to get a copy of this message
Note Submitter: Chris (AT) deVidal (DOT) tv ---- 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

« previous php.notes (#116569) next »