计划任务的授权

1.at任务  /etc/at.allow /etc/at.deny

2.crontab任务  /etc/cron.allow /etc/cron.deny

【注:如果allow文件存在,则allow中的用户可以使用计划任务,allow文件不存在则去找deny文件,deny文件中的用户不可以使用计划任务】

【注:如果allow和deny文件都不存在,则表示只有root用户可以使用】

计划任务的补救

anacron服务 延迟补救

如果计划任务执行失败

[root@localhost ~]# vim /etc/anacrontab #anacron的配置文件
# /etc/anacrontab: configuration file for anacron # See anacron() and anacrontab() for details. SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root cron.daily run-parts /etc/cron.daily #开机65分钟会执行daily的计划任务,下面类推
cron.weekly run-parts /etc/cron.weekly
cron.monthly run-parts /etc/cron.monthly
05-11 12:59
查看更多