Print this page
13066 Want crontab -u
Change-ID: I3dc2251dbbcc721aeff25a9dde21a24271c927bc

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/crontab.1.man.txt
          +++ new/usr/src/man/man1/crontab.1.man.txt
   1    1  CRONTAB(1)                       User Commands                      CRONTAB(1)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         crontab - user crontab file
   7    7  
   8    8  SYNOPSIS
   9      -       /usr/bin/crontab [filename]
        9 +       /usr/bin/crontab [-u username] [filename]
  10   10  
  11   11  
  12      -       /usr/bin/crontab -e [username]
       12 +       /usr/bin/crontab { -e | -l | -r } [username]
  13   13  
  14   14  
  15      -       /usr/bin/crontab -l [username]
       15 +       /usr/bin/crontab -u username { -e | -l | -r }
  16   16  
  17   17  
  18      -       /usr/bin/crontab -r [username]
  19      -
  20      -
  21   18         /usr/xpg4/bin/crontab [filename]
  22   19  
  23   20  
  24      -       /usr/xpg4/bin/crontab -e [username]
       21 +       /usr/xpg4/bin/crontab { -e | -l | -r } [username]
  25   22  
  26   23  
  27      -       /usr/xpg4/bin/crontab -l [username]
       24 +       /usr/xpg4/bin/crontab -u username { -e | -l | -r }
  28   25  
  29   26  
  30      -       /usr/xpg4/bin/crontab -r [username]
  31      -
  32      -
  33   27         /usr/xpg6/bin/crontab [filename]
  34   28  
  35   29  
  36      -       /usr/xpg6/bin/crontab -e [username]
       30 +       /usr/xpg6/bin/crontab { -e | -l | -r } [username]
  37   31  
  38   32  
  39      -       /usr/xpg6/bin/crontab -l [username]
       33 +       /usr/xpg6/bin/crontab -u username { -e | -l | -r }
  40   34  
  41   35  
  42      -       /usr/xpg6/bin/crontab -r [username]
  43      -
  44      -
  45   36  DESCRIPTION
  46   37         The crontab utility manages a user's access with cron (see cron(1M)) by
  47   38         copying, creating, listing, and removing crontab files. If invoked
  48   39         without options, crontab copies the specified file, or the standard
  49   40         input if no file is specified, into a directory that holds all users'
  50   41         crontabs.
  51   42  
  52   43  
  53   44         If crontab is invoked with filename, this overwrites an existing
  54      -       crontab entry for the user that invokes it.
       45 +       crontab entry for the user that invokes it, or for the user specified
       46 +       with the -u option.
  55   47  
  56   48     crontab Access Control
  57   49         Users: Access to crontab is allowed:
  58   50  
  59   51             o      if the user's name appears in /etc/cron.d/cron.allow.
  60   52  
  61   53             o      if /etc/cron.d/cron.allow does not exist and the user's name
  62   54                    is not in /etc/cron.d/cron.deny.
  63   55  
  64   56  
↓ open down ↓ 187 lines elided ↑ open up ↑
 252  244               user.
 253  245  
 254  246  
 255  247         -r
 256  248               Removes a user's crontab from the crontab directory. Only root or
 257  249               a user with the solaris.jobs.admin authorization can specify a
 258  250               username following the -r option to remove the crontab file of
 259  251               the specified user.
 260  252  
 261  253  
      254 +       -u username
      255 +             Specifies the name of the user whose crontab is to be replaced,
      256 +             viewed or modified. This can only be done by root or by a user
      257 +             with the solaris.jobs.admin authorization.
      258 +
      259 +
      260 +
 262  261  EXAMPLES
 263  262         Example 1 Cleaning up Core Files
 264  263  
 265  264  
 266  265         This example cleans up core files every weekday morning at 3:15 am:
 267  266  
 268  267  
 269  268           15 3 * * 1-5 find $HOME -namecore 2>/dev/null | xargs rm -f
 270  269  
 271  270  
↓ open down ↓ 206 lines elided ↑ open up ↑
 478  477  
 479  478  
 480  479         Care should be taken when adding TZ, SHELL and HOME variables to the
 481  480         crontab  file when the crontab file could be shared with applications
 482  481         that do not expect those variables to be changed from the default.
 483  482         Resetting the values to their defaults at the bottom of the file will
 484  483         minimize the risk of problems.
 485  484  
 486  485  
 487  486  
 488      -                               October 22, 2019                     CRONTAB(1)
      487 +                                August 20, 2020                     CRONTAB(1)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX