Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1069
  • Last Modified:

Unix crontab root, sys and adm

I know what the Unix crontabs do and users "root", "sys" and "adm" have their own crontab files, which are located under /var/spool/cron/crontabs. However, if I have set up a crontab task, I don't know which file should be go, root, sys or adm? Also different user's crontab job has different directory access priviledge. For example, a sys crontab command may not be able to dump log files owned by root and etc.
3 Solutions
It always depends on the privileges your crontab job will need.
If the scheduled event should be executed with root permissions, you need to put it into root's crontab. If the job doesn't need special permissions, you can actually run it from your own crontab, or even from nobody's.
adm's crontab is mainly for process accounting and system activity jobs.
root's crontab is for all jobs requiring elevated privileges.
sys may be used for jobs requiring privileges not so elevated as root's.
Brian UtterbackPrinciple Software EngineerCommented:
Actually, the sys account has no elevated privileges, it is just a normal user for performance data gathering. The files it needs to access are either owned by sys or have permission that let the account access them.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now