Help - Search - Members - Calendar
Full Version: Cron Daemon Permission denied
The Planet Forums > Operating Systems > Red Hat Linux
daferub
Can somebody help me for what reason I get Permission denied when set a cron like this:

/bin/sh: /home/xxxx/public_html/xxxx/xxxx/xxxx/cron_pop.php: Permission denied

Waiting response

Thanks
Satire
QUOTE (daferub @ Aug 29 2008, 12:29 PM) *
Can somebody help me for what reason I get Permission denied when set a cron like this:

/bin/sh: /home/xxxx/public_html/xxxx/xxxx/xxxx/cron_pop.php: Permission denied

Waiting response

Thanks


Check the permissions of that file and make sure the user accessing it can read it (and each directory before it)

I am guessing that it is the web server that is trying to access it ? if so you may need ot ensure that the web server user (default is apache under redhat) can at least read that file/directory.

if you are trying to run it as a shell script, then also make sure that the script is executable - if not you will also get that error

[root@wibble ~]# touch bob
[root@wibble ~]# ls -l bob
-rw-r--r-- 1 root root 0 Sep 3 21:12 bob
[root@wibble ~]# ./bob
-bash: ./bob: Permission denied
[root@wibble ~]# chmod 755 bob
[root@wibble ~]# ls -l bob
-rwxr-xr-x 1 root root 0 Sep 3 21:12 bob
[root@wibble ~]# ./bob
[root@wibble ~]#

HTH

Steve.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.