0

Our Linux server has a community user that has a crontab for itself. The admins don't want me to schedule my scripts on their crontab because they don't want to take responsibility for my programming. Different department, Fair enough.

I suggested that I use my own users crontab to schedule my programming and now the aren't certain that if my crontab failed, theirs wouldn't too. Please tell me they aren't linked. Isn't that one of the purposes for having the ability to make multiple crontabs?

  • 1
    The individual entries in one crontab are not linked, unless one changes something on disk that the other relies upon. Crontab execution cannot bring down a proper cron daemon and your task will not influence other crontabs, except if you hog the resources of the computer (that has nothing to do with things being a cron job). – Zelda Jan 23 '14 at 18:45
1

Each user has his or her own cron table; this can be confirmed by running crontab -e as one user, adding a job or comment, and then confirming that the changes are not there by running crontab -l as another user.

Each user's cron jobs are run with that user's permissions, so you cannot set up a job as the user joe and access fred's files, notwithstanding explicitly granted permissions or shared groups.

| improve this answer | |
  • You are correct, but you didn't really answer the question ^^ – Martin von Wittich Jan 23 '14 at 18:41
  • Regarding the question: the only way for a crontab to "fail" is to have a syntax error in it (for example a missing field in a line); it won't break just because an executed command fails. If your crontab breaks due to a syntax error, the other crontabs shouldn't be affected. – Martin von Wittich Jan 23 '14 at 18:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.