The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh permission denied gefa AIX 3 12-04-2008 10:52 AM
tar : permission denied big123456 UNIX for Advanced & Expert Users 0 09-09-2005 04:32 AM
rcp 'permission denied' Kevin Pryke UNIX for Dummies Questions & Answers 6 04-24-2002 04:20 AM
Permission Denied using VI on my NFS jennifer UNIX for Dummies Questions & Answers 4 08-08-2001 06:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-27-2006
Alano Alano is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 5
Cronjob: permission denied

Hello everybody,
I will be very thankfull for any help to solve this problem.
My project installed in subfolder and url is mysite.mydomain.com.
Can't setup crontab for this project, error: " /bin/sh: /usr/bin/GET: Permission denied ".
But it is working fine for root directory installation.
Any clue?.

Thanks in advance.
  #2 (permalink)  
Old 09-27-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,909
What does the troublesome crontab entry look like? Or are you saying you can't edit your crontab?
  #3 (permalink)  
Old 09-27-2006
Alano Alano is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 5
Quote:
Originally Posted by Corona688
What does the troublesome crontab entry look like? Or are you saying you can't edit your crontab?
i tried different entries

0 0 * * * GET http://www.mysite.mydomain.com/cronjob.php > /dev/null

0 0 * * * GET http://www.mydomain.com/mysite/cronjob.php > /dev/null
  #4 (permalink)  
Old 09-27-2006
sayonm sayonm is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 30
it can be that the crontab setup is not enables for ur username. tell the root to make a cron for you. and then u can easily make crons.
  #5 (permalink)  
Old 09-29-2006
gauravgoel gauravgoel is offline
Registered User
  
 

Join Date: Dec 2005
Location: India
Posts: 218
go to /var/adm/cron directory.
cat the contents of cron.allow and check if user name u are using is there or not.
if not add the username .
  #6 (permalink)  
Old 09-29-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Check that:
- Your user is "cron-enabled".
- You edit your user's crontab using "crontab -e"
- "GET" seems to be an executable file (binary or script), so check that it has execution enabled for your cron user.
Regards.
  #7 (permalink)  
Old 09-29-2006
tbdo88 tbdo88 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 11
Quote:
Originally Posted by grial
Check that:
- Your user is "cron-enabled".
- You edit your user's crontab using "crontab -e"
- "GET" seems to be an executable file (binary or script), so check that it has execution enabled for your cron user.
Regards.

Based on the error message: error: " /bin/sh: /usr/bin/GET: Permission denied ".

Crontab interprete GET as a unix command and run a which on GET. However, GET does not exist, I believe on any setted PATH or /usr/bin.

Solution: If GET is executable script.. Hard coded the path to GET in your crontab.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0