|
Posted by Jerry Stuckle on 09/09/05 22:30
comp.lang.php wrote:
> Original thread in
> http://www.phpbuilder.com/board/showthread.php?p=10659321#post10659321
>
> I have CRON scripts with owner/group relationship of "phillip/apache"
> that need to access directories within the docroot. The directories,
> if I create them, will have owner/group relationship of
> "phillip/apache", and all is well since they are all group-accessible
> (permissions of 0770).
>
> However, I have a web app within the docroot that has the ability to
> spawn folders of its own. These folders will, of course have
> owner/group relationship of "apache/apache", and for security purposes
> must also have permissions of 0770.
>
> When my CRON scripts accesses the "phillip/apache" folders, all is
> well. However, when it access the "apache/apache" folders, I get a PHP
> warning "Permission Denied" when trying to access these folders using
> this:
>
> [PHP]<? $dirID = opendir($dir); ?>[/PHP]
>
> The original thread I posted has one PHP expert stumped and so far I've
> been consistent in stumping everyone else I know, so I'm looking to
> break that trend and find someone that can help me figure this out.
>
> Thanx
> Phil
>
Phil,
The scripts themselves may have an owner/group as phillip/apache - but
what user are they running under?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|