3

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

2 Answers 2

3

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.)

2
  • Why, then, are there crontabs for different users as indicated here: stackoverflow.com/questions/134906/…
    – Keyslinger
    Jul 18, 2011 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. Jul 18, 2011 at 20:14
-2

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

1
  • Bad form circumventing the minimum character limit. Even if it can be answered in less, you should elaborate on your answer (like grawity did). Jul 18, 2011 at 19:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .