Print this page
13066 Want crontab -u
Change-ID: I3dc2251dbbcc721aeff25a9dde21a24271c927bc
@@ -4,56 +4,48 @@
NAME
crontab - user crontab file
SYNOPSIS
- /usr/bin/crontab [filename]
+ /usr/bin/crontab [-u username] [filename]
- /usr/bin/crontab -e [username]
+ /usr/bin/crontab { -e | -l | -r } [username]
- /usr/bin/crontab -l [username]
+ /usr/bin/crontab -u username { -e | -l | -r }
- /usr/bin/crontab -r [username]
-
-
/usr/xpg4/bin/crontab [filename]
- /usr/xpg4/bin/crontab -e [username]
+ /usr/xpg4/bin/crontab { -e | -l | -r } [username]
- /usr/xpg4/bin/crontab -l [username]
+ /usr/xpg4/bin/crontab -u username { -e | -l | -r }
- /usr/xpg4/bin/crontab -r [username]
-
-
/usr/xpg6/bin/crontab [filename]
- /usr/xpg6/bin/crontab -e [username]
+ /usr/xpg6/bin/crontab { -e | -l | -r } [username]
- /usr/xpg6/bin/crontab -l [username]
+ /usr/xpg6/bin/crontab -u username { -e | -l | -r }
- /usr/xpg6/bin/crontab -r [username]
-
-
DESCRIPTION
The crontab utility manages a user's access with cron (see cron(1M)) by
copying, creating, listing, and removing crontab files. If invoked
without options, crontab copies the specified file, or the standard
input if no file is specified, into a directory that holds all users'
crontabs.
If crontab is invoked with filename, this overwrites an existing
- crontab entry for the user that invokes it.
+ crontab entry for the user that invokes it, or for the user specified
+ with the -u option.
crontab Access Control
Users: Access to crontab is allowed:
o if the user's name appears in /etc/cron.d/cron.allow.
@@ -257,10 +249,17 @@
a user with the solaris.jobs.admin authorization can specify a
username following the -r option to remove the crontab file of
the specified user.
+ -u username
+ Specifies the name of the user whose crontab is to be replaced,
+ viewed or modified. This can only be done by root or by a user
+ with the solaris.jobs.admin authorization.
+
+
+
EXAMPLES
Example 1 Cleaning up Core Files
This example cleans up core files every weekday morning at 3:15 am:
@@ -483,6 +482,6 @@
Resetting the values to their defaults at the bottom of the file will
minimize the risk of problems.
- October 22, 2019 CRONTAB(1)
+ August 20, 2020 CRONTAB(1)