Crontab is disappearing whenever we edit it?

crontab -l 

no crontab for the is the error

the user is High privileged access account

What can be the root cause? Any suggestions where to check?

New contributor
Nikhil is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • You've started with no crontab; what commands did you enter next in order to edit the crontab? – Jeff Schaller Nov 8 at 17:16
  • Is crond running ? Did you edit the crontab with crontab -e ? Could it be that you are confusing the system crontab with crontab of a user ? (Users, by default, have a empty crontab so in that case it's perfectly normal) – Garo Nov 8 at 19:46
  • I gave crontab -e and then saved it and when i checked , it disappeared .As a result of this the next jobs didnt run and we had a major issue . we have raised a case with redhat to see if there is an issue with the recent update .. Have anyone noticed such issues previously – Nikhil Nov 8 at 21:25
  • yes crond is up and running .. this user is our main user and all our jobs run with this user – Nikhil Nov 8 at 21:25
  • crontab -e uses a temporary file (but the changes are saved by cron) so it's perfectly normal that the file disappeared. Did you add a cronline (in the correct cron-syntax) ? No cronlines = no crontab – Garo Nov 8 at 21:41

Your Answer

Nikhil is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.