Annotation of coherent/d/etc/SYSVcron/README.crontab, revision 1.1.1.1

1.1       root        1: crontab - Command
                      2: /usr/bin/crontab
                      3: 
                      4: crontab [-u user_name] ...\n
                      5:        -l                       list user's crontabab
                      6:        -r                       remove user's crontab
                      7:        -f file_name             replace user's crontab
                      8:        -m e[nable]/d[isable]    enable/disable mail
                      9: 
                     10: CRONTAB command copies the file, or standart input if file name is "-", into
                     11: a directory /usr/spool/cron/crontabs that holds all crontabs. 
                     12: 
                     13: -u user        allows to specify a user name. Only superuser allows to use user
                     14:                name different from its own. Default is effective user name.
                     15: -l             list the user crontab.
                     16: -r             remove user crontab.
                     17: -f file_name   replace user crontab with specify file.
                     18: -m e/d                 enable/disable mail to the user about the failed command.
                     19: 
                     20: The next table shows conditions when user is allowed to use crontab.
                     21:     
                     22:      \ deny     exist        exist              exist          doesn't
                     23:       \         is user      no user          but empty        exist
                     24:  allow \
                     25:  _______\________________________________________________________________
                     26:   exist  |        
                     27:  is user |        Y             Y               Y               Y
                     28:  ------------------------------------------------------------------------
                     29:   exist  |
                     30:  no user |        N              N               N               N       
                     31:  ------------------------------------------------------------------------
                     32:   doesn't|
                     33:    exist |        N              Y               Y               N
                     34: 
                     35: Where deny means the file /usr/lib/cron/cron.deny, and allow is
                     36: the file /usr/lib/cron/cron.allow
                     37: This table is not valid for user root hwich can always use crontab.
                     38: 
                     39:        Directories and files
                     40: 
                     41: /usr/lib/cron                  main cron directory.
                     42:        700 root root
                     43: /usr/lib/cron/FIFO             lock file (named pipe).
                     44:        created by crond; removed by crond/rc
                     45: /usr/lib/cron/cron.allow       list of allowed users.
                     46:        600 root root
                     47: /usr/lib/cron/cron.deny                list of denied users.
                     48:        600 root root
                     49: /usr/lib/crontab               old crontab entry. 
                     50: /usr/spool/cron                        spool directory parent
                     51:        700 root root
                     52: /usr/spool/cron/crontabs       spool directory
                     53:        700 root root
                     54: 
                     55: #/usr/lib/cron/log             accounting information (not used).
                     56: #/etc/default/cron             user config. file (not used).
                     57: 
                     58: Old crontab entry. We will use it for the backword compatibility.
                     59: /usr/lib/crontab
                     60: 
                     61: NOTICE: COHERENT crontab is superset of SV crontab command.
                     62: The main differences are: 
                     63:        COHERENT crontab prints the usage, when no options have been chosen,
                     64:        SV reads stdin and can just remove user crontab;
                     65:        options -f file_name doesn't exist under SV. That cause non traditional
                     66:        usage of SV crontab;
                     67:        options -u user doesn't exist under SV. That means when you want
                     68:        to maintain a crontab for somebody else (uucp) you have to use 
                     69:        "su user_name" before invoke crontab.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.