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 > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unexpected crontab error dhanamurthy Shell Programming and Scripting 12 11-06-2008 10:24 PM
Run perl file in Crontab error. raccsdl Shell Programming and Scripting 2 11-13-2007 07:07 AM
Crontab error Cannot execute binary file. raccsdl Shell Programming and Scripting 5 11-13-2007 06:22 AM
Error: Internal system error: Unable to initialize standard output file firkus UNIX for Dummies Questions & Answers 2 10-25-2005 03:23 PM
crontab: error on previous line; number out of bounds. oradbus UNIX for Advanced & Expert Users 1 07-01-2005 04:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-09-2007
uadm26 uadm26 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 11
crontab -e error

Hi guys,

OS Red Hat Enterprise 4. Problem:
By oravwp user I can't use crontab -e, report the error:
cron/oravwp: Permission denied

I have experience in HP-UX and Sun Solaris, and the problem seems not to be easy or I going old with all of this . The file /etc/cron.deny exist, it's empty, the workaround that I found is execute by user:
crontab -u oravwp -e
But before that using oravwp user I don't have success with command crontab -e or -l.

What it can bee, help me.
  #2 (permalink)  
Old 08-09-2007
uadm26 uadm26 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 11
Sorry I'have done by user root:
crontab -u oravwp -e

and I tested and it's working, but I can't edit loged in as user oravwp.
  #3 (permalink)  
Old 08-10-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
Apparently it's permission issue, do a "ls -la /usr/bin/crontab" most probably it will be owned by root.
  #4 (permalink)  
Old 08-10-2007
kahuna's Avatar
kahuna kahuna is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 149
Quote:
Originally Posted by sysgate View Post
Apparently it's permission issue, do a "ls -la /usr/bin/crontab" most probably it will be owned by root.
I assume that you mean the crontab data file (in /var/spool/cron/crontabs?) is owned by root, rather than the program file /usr/bin/crontab (which should be owned by root). Or are you suggesting that perhaps the setuid bid is not set on /usr/bin/crontab?
  #5 (permalink)  
Old 08-10-2007
uadm26 uadm26 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 11
Thanks for all, guys.

I find the solution before Kahuna, but Is its right, I change the SUID.
chmod 4755 /usr/bin/crontab

Thanks for all, guys.
  #6 (permalink)  
Old 01-03-2008
dougk dougk is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 1
similar problem

Hi all.

Am having a similar problem. when I edit a user's crontab as root using crontab -u user -e. the users cron job runs but when i log in as the user and edit the crontab it doesn't run.

could it be the permissions on the users' /var/spool/cron/user

thx.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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