From ee93b90a4186cba54ee5d2b9c0529546d400e603 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 30 Aug 2005 14:20:34 +0000 Subject: [PATCH] Mode can be changed only by owner (bug #33639) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@194636 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/chmod.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reference/filesystem/functions/chmod.xml b/reference/filesystem/functions/chmod.xml index dbb1c29ae0..fe98e010ba 100644 --- a/reference/filesystem/functions/chmod.xml +++ b/reference/filesystem/functions/chmod.xml @@ -1,5 +1,5 @@ - + @@ -77,6 +77,7 @@ chmod("/somedir/somefile", 0750); The current user is the user under which PHP runs. It is probably not the same user you use for normal shell or FTP access. + The mode can be changed only by user who owns the file on most systems. ¬e.no-remote; @@ -85,7 +86,7 @@ chmod("/somedir/somefile", 0750); When &safemode; is enabled, PHP checks whether the files or directories you are about to operate on have the same UID (owner) as the script that is being executed. In addition, - you cannot set the SUID, SGID and sticky bits + you cannot set the SUID, SGID and sticky bits.