[BlueOnyx:01087] Re: PHP method for changing folder / file owner?

Matthew Komar mkomar at serverrack.net
Fri Apr 17 06:38:44 -05 2009


There is always the php chown function.

http://us2.php.net/chown

I wouldn't want to dirty up the BX interface with it, but you could 
write something that would to a recursive chown for an entire tree, and 
have the user pull up that page to resolve it, or even cron it if it's 
that big of a deal.

Jeff Jones wrote:
> Hi guys,
>
> I have a real hosting pain on my hands with BX with someone that is  
> insisting on uploading files via wordpress via FTP using the admin  
> user account, but not being able to write to them via wordpress. Due  
> to the particular setup we run, we are not able to change folder  
> ownership / perms via FTP.
>
> The only current solution is that I need to manually (each time) log  
> in and change the ownership to apache, and that generally sorts it.
>
> I know there was talk of some sort of tickbox / permissions fixer -  
> but in the meantime can anyone think of another way I can get around  
> this?
>
> I have thought of perhaps they could upload a PHP file and put a CHOWN  
> change request in that. The file would only be uploaded when they  
> wanted to change perms, and I understand I would have to disable safe  
> mode. But I'm rubbish as PHP so I was thinking perhaps someone knew  
> how to do this?
>
> Are there any other suggestions?
>
> Cheers,
>
> Jeff
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
>   



More information about the Blueonyx mailing list