Unix crontab root, sys and adm

Posted on 2010-01-08
Last Modified: 2013-12-27
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.
Question by:gs_kanata
    LVL 14

    Assisted Solution

    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.
    LVL 68

    Accepted Solution

    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.
    LVL 22

    Assisted Solution

    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

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now