cannot access /var/spool/cron/crontabs: Permission denied

Post Reply
mister_v
Posts: 199
Joined: Thu Mar 04, 2010 9:19 pm

cannot access /var/spool/cron/crontabs: Permission denied

Post by mister_v »

I can not edit my cronfile anymore.

I get the following error message.

Code: Select all

cannot access /var/spool/cron/crontabs: Permission denied
As root it is possible.
chris
Site Admin
Posts: 205
Joined: Mon Jul 21, 2008 9:52 am

Re: cannot access /var/spool/cron/crontabs: Permission denied

Post by chris »

There can be several reasons:

check that the group crontab has all the necessary rights

Code: Select all

chown root:crontab /usr/bin/crontab
chmod g+s /usr/bin/crontab

Code: Select all

chown root:crontab /var/spool/cron/crontabs
chmod u=rwx,g=wx,o=t /var/spool/cron/crontabs
mister_v
Posts: 199
Joined: Thu Mar 04, 2010 9:19 pm

Re: cannot access /var/spool/cron/crontabs: Permission denied

Post by mister_v »

Thanks.

I found the problem:
The usergroup of /var/spool/cron
was set to cron instead of crontab.

I don't know how this happened?
Perhaps with and update of cron?
Post Reply