Why do I get an error in crontab-e?

Why do I get an error in crontab-e?

I run crontab -e, make my edits, and try to save and exit. I receive the following error message /var/spool/cron/: mkstemp: Permission denied. I can directly edit the greg file and save that but I still can’t seem to get the job to run, even if I restart cron after updating it.

Do you start each crontab line with a time definition?

Each crontab line must start with a time at which the command should be run and then the command. The general format is: So, to run command at 10:15 every Sunday, you’d do: I’m not sure what your commands are, but you have lines that don’t start with a time definition.

Why do I get a bad minute error when installing Cron?

The problem was that Windows line separators (CRLF) were upsetting the Linux based cron. Changing the separators to be Linux line separators (LF) fixed the problem. It can be an error while copy pasting from text editor. Everything should be in one line, e.g.:

How to fix Cron in apt-get update?

But, if you can download packages, a more robust way to fix this is to use apt-get to reinstall the appropriate package: after first making sure any local changes you’ve made to /etc/init/cron.conf, /etc/default/cron, etc. are copied somewhere and then reapplied.

Where to find Cron root and crontab files?

Those are usually in /var/spool/cron/crontabs/ . I wouldn’t be surprised if there were more permissions or file attributes blocking your path, but you want to get in and audit those files smartish. You might also want to look for other files that have their file attributes set oddly (in particular the immutable bit).

Why do I get permission denied on CRON root?

If this is foul play, then my guess is someone is trying to prevent you from finding and fixing something in the crontab data files. Those are usually in /var/spool/cron/crontabs/ . I wouldn’t be surprised if there were more permissions or file attributes blocking your path, but you want to get in and audit those files smartish.

Why do I get an error message in Cron?

I receive the following error message /var/spool/cron/: mkstemp: Permission denied. I can directly edit the greg file and save that but I still can’t seem to get the job to run, even if I restart cron after updating it.