I have edited my root's crontab. Will root's cron jobs still run when I'm logged in as another user?


The cron daemon runs as a daemon, and runs jobs irrespective of who, if anyone, is logged in.

(Remember that Unix used to run on big servers with hundreds of users, most of which would be be logged out at evening/night.)

| improve this answer | |
  • Why, then, are there crontabs for different users as indicated here: stackoverflow.com/questions/134906/… – Keyslinger Jul 18 '11 at 20:06
  • 3
    @Keyslinger The crontab is a file that lists what to do, while cron is the background process that actually does the things. It goes through all of crontabs for all of the users to find things to execute. Each user has their own crontab to allow each user to set their own cron jobs that other users can't mess with. – Darth Android Jul 18 '11 at 20:14

Yes, root's cron jobs will still run even if you're logged in as another user.

| improve this answer | |
  • Bad form circumventing the minimum character limit. Even if it can be answered in less, you should elaborate on your answer (like grawity did). – Darth Android Jul 18 '11 at 19:56

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.