|
Posted by Kenneth Downs on 06/02/05 14:38
Perttu Pulkkinen wrote:
> "Alvaro G Vicario" wrote:
>> *** Perttu Pulkkinen wrote/escribió (Thu, 02 Jun 2005 09:08:02 GMT):
>> > Chown doesn't work, because only superuser can change file's owner.
>
>> Try changing the group with chgrp() and giving rights to the group. In
> many
>> Linux distros user's main group is a group named after the username that
> is
>> created automatically. That's it, user john belongs to group john.
>
> Chgrp doesn't work either, because only superuser can change file's group.
It does work. The apache user must be in the group.
So if user John is in group "John", and you want John to be able to
manipulate files uploaded by apache, then put apache into that group also.
Then apache will be able to chgrp its own files to group John.
--
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)
Navigation:
[Reply to this message]
|