Page 1 of 1

SOLVED: crontab not working

Posted: Mon Oct 20, 2014 6:01 pm
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 )

Re: crontab not working

Posted: Mon Oct 20, 2014 6:25 pm
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 

Re: crontab not working

Posted: Sat May 09, 2015 12:33 pm
by mister_v
Thanks, the solved the problem