note 30248 added to function.chmod
| From: | sticky at rack1 dot php dot net | Date: | Wed, 12 Mar 2003 09:30:44 +0000 |
| Subject: | note 30248 added to function.chmod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45135@lists.php.net to get a copy of this message | ||
Just a little hint. I was once adwised to set the 'sticky bit', i.e. use 01777 as
chmod-value. Do NOT do this if you don't have root privileges. When 'sticky bit' is
set ONLY the fileuser can delete it afterwards, typically 'httpd' or something like that
in case of an upload-script for example. I was unaware of this and actually had to make a script for
deleting these files as I could not do this from ftp/ssh even though I did have read/write/execute
access to both files and folders. Use simply '0777' or similiar.
--
http://www.php.net/manual/en/function.chmod.php
http://master.php.net/manage/user-notes.php?action=edit+30248
http://master.php.net/manage/user-notes.php?action=delete+30248
http://master.php.net/manage/user-notes.php?action=reject+30248