Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

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

share|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
2  
@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
add comment

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

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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