RE: [PHP] copy_file() files
| From: | Jay Blanchard | Date: | Thu, 04 Dec 2003 12:21:05 +0000 |
| Subject: | RE: [PHP] copy_file() files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171805@lists.php.net to get a copy of this message | ||
[snip]
> What is the chmod of those files/directories.
[/snip]
You had already stated the owner/group...I want to know what the
read/write permissions are. For 'nobody' to be able to write to a
directory that directory must be owned by 'nobody'
drw------- (chmod 600)
If the group is 'nobody' it must also have permission
drw-rw--- (chmod 660)
These are called absolute permissions and are oft misunderstood. The
first digit is the owner's permission, the second is the group's, and
the third is everyone else. Numbers range from 0 (no permissions) to 7
(read write and execute permissions).
In order to copy a file to a directory the 'person' must have write
permissions.