You are here: CRON scripts fail to access group-shared directories « PHP Programming Language « IT news, forums, messages
CRON scripts fail to access group-shared directories

Posted by comp.lang.php on 09/09/05 18:29

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

 

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

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