Linux System Administration
CUPS and CRON
Restricting Use to
cron
Cron has a built in feature of allowing you to specify who may, and who may not use it.
It does this by the use of
/etc/cron.allow
and
/etc/cron.deny
files.
These files work the same way as the allow/deny files for other daemons do.
To stop a user using cron, just put their name in cron.deny, to allow a user put their name in the cron.allow.
If you wanted to prevent all users from using cron, you could add the line
ALL
to the cron.deny file.
root@localhost # echo ALL >>/etc/cron.deny
If you want user
mlala
to be able to use cron, you would add the line
mlala
to the cron.allow file:
root@localhost # echo mlala >>/etc/cron.allow
Prev
Page 9
Next