Re: copy_file() files
| From: | Ajai Khattri | Date: | Thu, 04 Dec 2003 14:38:12 +0000 |
| Subject: | Re: copy_file() files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171832@lists.php.net to get a copy of this message | ||
On Thu, Dec 04, 2003 at 06:21:05AM -0600, Jay Blanchard wrote:
> 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)
Of course, user nobody had read/write permission and the group too.
> 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.
As an administrator with 15 years experience of Unix, I think I understand
this! ;-)
Anyway, I solved my problem - I just needed to tweak open_base_dir in php.ini.
--
Aj.
Sys. Admin / Developer