| 
	
 | 
 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] 
 |