EDRC/ECRONTAB

Package: WA2L/edrc 1.5.57
Section: User Commands (1)
Updated: 24 February 2023
Index Return to Main Contents
 

NAME

ecrontab - maintains crontab files for individual users (cron in WA2L/edrc)

 

SYNOPSIS

edrc/bin/ecrontab [-u user] <file | ->

ecrontab [-T] <file | ->

ecrontab [-u user] <-l | -r | -e> [-i] [-s]

ecrontab -V

 

DESCRIPTION

ecrontab is the program used to install a crontab table file, remove or list the existing tables used to serve the crond(3) daemon. Each user can have their own crontab, and though these are files in edrc/var/spool/cron/, they are not intended to be edited directly.

Prior to editing a crontab table it is automatically saved using vsav(1).

Scheduling cron jobs with ecrontab can be allowed or disallowed for different users. For this purpose, use the edrc/etc/cron.allow and edrc/etc/cron.deny files. If the cron.allow file exists, a user must be listed in it to be allowed to use crontab. If the cron.allow file does not exist but the cron.deny file does exist, then a user must not be listed in the cron.deny file in order to use ecrontab. If neither of these files exist, then only the super user is allowed to use ecrontab.

The temporary directory can be set in an environment variable. If it is not set by the user, the /tmp/ directory is used.

When listing a crontab on a terminal the output will be colorized unless an environment variable NO_COLOR is set.

 

OPTIONS

-u
Specifies the name of the user whose crontab is to be modified. If this option is not used, ecrontab examines "your" crontab, i.e., the crontab of the person executing the command. If no crontab exists for a particular user, it is created for them the first time the ecrontab -u command is used under their username.
-T
Test the crontab file syntax without installing it. Once an issue is found, the validation is interrupted, so this will not return all the existing issues at the same execution.
-l
Displays the current crontab on standard output.
-r
Removes the current crontab.
-e
Edits the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automatically.

Be aware, that the configuration file is saved automatically before editing using the vsav(1) command internally. Therefore when a messed-up file was saved, or to check changes, the vls(1), vdiff(1), vrestore(1) etc. commands can be used to verify changes or revert to a previous version.

-i
This option modifies the -r option to prompt the user for a 'y/Y' response before actually removing the crontab.
-s
Appends the current SELinux security context string as an MLS_LEVEL setting to the crontab file before editing / replacement occurs - see the documentation of MLS_LEVEL in crontab(5).
-V
Print version and exit.

 

CAVEATS

The files cron.allow and cron.deny cannot be used to restrict the execution of cron jobs; they only restrict the use of ecrontab. In particular, restricting access to ecrontab has no effect on an existing crontab of a user. Its jobs will continue to be executed until the crontab is removed.

The files cron.allow and cron.deny must be readable by the user invoking crontab. If this is not the case, then they are treated as non-existent.

 

SEE ALSO

edrcintro(1), crontab(4), crond(3), ecronnext(1), vdiff(1), vls(1), vrestore(1), vsav(1)

 

FILES

edrc/etc/cron.allow
List of users to allow ecrontab access.

edrc/etc/cron.deny
List of users to deny ecrontab access.

 

STANDARDS

The ecrontab command conforms to IEEE Std1003.2-1992 (``POSIX'') with one exception: For replacing the current crontab with data from standard input the - has to be specified on the command line if the standard input is a TTY. This new command syntax differs from previous versions of Vixie Cron, as well as from the classic SVR3 syntax.

 

DIAGNOSTICS

An informative usage message appears if you run a crontab with a faulty command defined in it.

 

AUTHOR

Paul Vixie <vixie@isc.org>
Colin Dean <colin@colin-dean.org>


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
CAVEATS
SEE ALSO
FILES
STANDARDS
DIAGNOSTICS
AUTHOR

This document was created by man2html using the manual pages.
Time: 22:03:45 GMT, December 09, 2024