You are here: Re: problem setting permisions « PHP Programming Language « IT news, forums, messages
Re: problem setting permisions

Posted by Schraalhans Keukenmeester on 05/24/07 11:17

At Thu, 24 May 2007 10:55:45 +0000, harvey let his monkeys type:

> In article <pan.2007.05.23.19.31.54.373777@invalid.spam>,
> invalid@invalid.spam says...
>> http://www.php.net/manual/en/function.mkdir.php
>>
>
> Thanks for that heads up -
> Surely someone has a simple solution for this that will work anywhere?
> Using FTP (as suggested) just seems absurd to me.
>
> After reading the above link I think I can sumarise with:
>
>
> -----------------[ CUT ]------------
> If you're on a shared *nix server, a directory created through mkdir()
> will not be assigned to you, but to the user that your host's server or
> php process is running under, usually 'nobody', 'apache' or 'httpd'.
>
> In practice, this means that you can create directories, even add files
> to them, but you can't delete the directory or its contents nor change
> permissions.
>
> -----------------[ END CUT ]------------
>
> It is also incomplete - it appears you cannot create sub-dirs in them
> without taking extra steps ... using umask() and sticky bits depending
> on configuration. And even then it doesn't always work nor report
> the failure.
>
> All this can't be right can it?

If I am not overlooking something obvious, if apache:apache is the dir
owner, your script should be able to make a subdir in it, since the script
operates as apache:apache.

However it may be a problem accessing these dirs via FTP (other user:group)

SH

 

Navigation:

[Reply to this 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

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