Reply to Re: move_uploaded_file, fileowner, chown etc.

Your name:

Reply:


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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация