SOLVED: crontab not working

Post Reply
mister_v
Posts: 122
Joined: Sat Jun 20, 2009 5:42 pm

SOLVED: crontab not working

Post by mister_v »

Hello,

I can't edit the user crontab file with

Code: Select all

crontab -e
I get the following error:

Code: Select all

'/var/spool/cron/crontabs' is not a directory, bailing out.
It does work for root.
and /var/spool/cron/crontabs is a directory. (only accessible by crontab and root)

The user is in group wheel. (I think it is needed for cron and sudo )
Last edited by mister_v on Sat May 09, 2015 12:33 pm, edited 1 time in total.
Chris
Site Admin
Posts: 115
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: crontab not working

Post by Chris »

Sound like your crontab program is not suid root

Code: Select all

 ls -l /usr/bin/crontab
 -rwsr-sr-x 1 root root 36512 Dec 3 11:28 /usr/bin/crontab
you can change it with:

Code: Select all

chmod u+s /usr/bin/crontab 
mister_v
Posts: 122
Joined: Sat Jun 20, 2009 5:42 pm

Re: crontab not working

Post by mister_v »

Thanks, the solved the problem
Post Reply