note 30248 modified in function.chmod by alindeman
| From: | alindeman@php.net | Date: | Mon, 31 Mar 2003 02:28:20 +0000 |
| Subject: | note 30248 modified in function.chmod by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45999@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 1777 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.
--was--
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