crontab -e error | Unix Linux Forums | Linux

  Go Back    


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

crontab -e error

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-09-2007
uadm26 uadm26 is offline
Registered User
 
Join Date: Jun 2007
Last Activity: 6 February 2008, 6:01 AM EST
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #2  
Old 08-09-2007
uadm26 uadm26 is offline
Registered User
 
Join Date: Jun 2007
Last Activity: 6 February 2008, 6:01 AM EST
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #3  
Old 08-10-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 
Join Date: Nov 2006
Last Activity: 20 November 2013, 8:29 AM EST
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
Apparently it's permission issue, do a "ls -la /usr/bin/crontab" most probably it will be owned by root.
    #4  
Old 08-10-2007
kahuna's Avatar
kahuna kahuna is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 1 August 2011, 7:54 AM EDT
Posts: 149
Thanks: 0
Thanked 1 Time in 1 Post
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?
Sponsored Links
    #5  
Old 08-10-2007
uadm26 uadm26 is offline
Registered User
 
Join Date: Jun 2007
Last Activity: 6 February 2008, 6:01 AM EST
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #6  
Old 01-03-2008
dougk dougk is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 3 January 2008, 12:18 PM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab error Mani_apr08 Solaris 2 09-14-2011 12:57 AM
Error using crontab -e dman110168 UNIX for Dummies Questions & Answers 3 07-03-2009 12:18 AM
Crontab error peluso Solaris 2 06-30-2009 10:24 PM
Crontab error Pablo_beezo Shell Programming and Scripting 4 02-23-2009 09:12 AM
Crontab error kclerks11 UNIX for Dummies Questions & Answers 2 12-07-2008 09:12 PM



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