User Commands crontab(1) NAME crontab - user crontab file SYNOPSIS crontab [ filename ] crontab [ -elr ] username DESCRIPTION The crontab utility manages a user's access with cron (see cron(1M)) by copying, creating, listing, and removing cron- tab files. If invoked without options, crontab copies the specified file, or the standard input if no file is speci- fied, into a directory that holds all users' crontabs. crontab Access Control Users: Access to crontab is allowed: o if the user's name appears in /etc/cron.d/cron.allow. o if /etc/cron.d/cron.allow does not exist and the user's name is not in /etc/cron.d/cron.deny. Users: Access to crontab is denied: o if /etc/cron.d/cron.allow exists and the user's name is not in it. o if /etc/cron.d/cron.allow does not exist and user's name is in /etc/cron.d/cron.deny. o if neither file exists, only a user with the | solaris.jobs.user authorization is allowed to submit a job. |* The allow/deny files consist of one user name per line. crontab Entry Format A crontab file consists of lines of six fields each. The [ MATERIAL DELETED FOR BREVITY ] OPTIONS The following options are supported: -e Edits a copy of the current user's crontab file, or creates an empty file to edit if crontab does not exist. When editing is complete, the file is installed as the user's crontab file. If a user- name is given, the specified user's crontab file is edited, rather than the current user's crontab file; this may only be done by a user with the | solaris.jobs.admin authorization. The |* environment variable EDITOR determines which edi- tor is invoked with the -e option. The default editor is ed(1). Note that all crontab jobs should be submitted using crontab ; you should not add jobs by just editing the crontab file because cron will not be aware of changes made this way. -l Lists the crontab file for the invoking user. Only a user with the solaris.jobs.admin authoriza- |* tion can specify a username following | the -r or -l options to remove or list the crontab file of the specified user. -r Removes a user's crontab from the crontab SunOS 5.8 Last change: 20 Feb 1997 2 User Commands crontab(1) directory.