1CRONTAB(1) Cronie Users' Manual CRONTAB(1)
2
3
4
6 crontab - maintain crontab files for individual users
7
9 crontab [-u user] file
10 crontab [-u user] [-l | -r | -e] [-i] [-s]
11
13 Crontab is the program used to install, remove or list the tables used
14 to drive the cron(8) daemon. Each user can have their own crontab, and
15 though these are files in /var/spool/ , they are not intended to be
16 edited directly. For SELinux in mls mode can be even more crontabs -
17 for each range. For more see selinux(8).
18
19 The cron jobs could be allow or disallow for different users. For clas‐
20 sical crontab there exists cron.allow and cron.deny files. If
21 cron.allow file exists, then you must be listed therein in order to be
22 allowed to use this command. If the cron.allow file does not exist but
23 the cron.deny file does exist, then you must not be listed in the
24 cron.deny file in order to use this command. If neither of these files
25 exists, only the super user will be allowed to use this command. The
26 second option is using PAM authentication, where you set up users,
27 which could or couldn't use crontab and also system cron jobs from
28 /etc/cron.d/.
29
30 The temporary directory could be set in enviroment variables. If it's
31 not set by user than /tmp is used.
32
34 -u Append the name of the user whose crontab is to be tweaked. If
35 this option is not given, crontab examines "your" crontab, i.e.,
36 the crontab of the person executing the command. Note that
37 su(8) can confuse crontab and that if you are running inside of
38 su(8) you should always use the -u option for safety's sake.
39 The first form of this command is used to install a new crontab
40 from some named file or standard input if the pseudo-filename
41 "-" is given.
42
43 -l The current crontab will be displayed on standard output.
44
45 -r The current crontab will be removed.
46
47 -e This option is used to edit the current crontab using the editor
48 specified by the VISUAL or EDITOR environment variables. After
49 you exit from the editor, the modified crontab will be installed
50 automatically.
51
52 -i This option modifies the -r option to prompt the user for a
53 'y/Y' response before actually removing the crontab.
54
55 -s It will append the current SELinux security context string as an
56 MLS_LEVEL setting to the crontab file before editing / replace‐
57 ment occurs - see the documentation of MLS_LEVEL in crontab(5).
58
60 crontab(5),cron(8)
61
63 /etc/cron.allow
64 /etc/cron.deny
65
67 The crontab command conforms to IEEE Std1003.2-1992 (``POSIX''). This
68 new command syntax differs from previous versions of Vixie Cron, as
69 well as from the classic SVR3 syntax.
70
72 A fairly informative usage message appears if you run it with a bad
73 command line.
74
76 Paul Vixie <vixie@isc.org>
77
78
79
80Marcela Mašláňová 20 July 2009 CRONTAB(1)