ITPub博客

首页 > Linux操作系统 > Linux操作系统 > crontab: you are not authorized to use cron

crontab: you are not authorized to use cron

原创 Linux操作系统 作者:super_sky 时间:2013-12-25 14:08:14 0 删除 编辑
要在orar3d用户下使用crontab工具,在检查是报crontab: you are not authorized to use cron错误。
信息如下:
bfr3dev:orar3d 5> id
uid=204(orar3d) gid=201(dba) groups=202(oper)
错误信息
bfr3dev:orar3d 6> crontab -l
crontab: you are not authorized to use cron.  Sorry.

这个处理很简单,进入到/var/adm/cron路径下
bfr3dev#[/var/adm/cron]pwd
/var/adm/cron

编辑cron.allow 文件,将orar3d用户添加到最后一行
bfr3dev#[/var/adm/cron]vi cron.allow
"cron.allow" [Read only] 3 lines, 14 characters 
root
adm
uucp
orar3d

测试:
bfr3dev:orar3d 1> id
uid=204(orar3d) gid=201(dba) groups=202(oper)
bfr3dev:orar3d 2> crontab -l
crontab: can't open your crontab file.
bfr3dev:orar3d 3> crontab -e
"/var/tmp/aaaa06041" 

这时,我们就可以进行编辑了。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11590946/viewspace-1064303/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-01-11

  • 博文量
    77
  • 访问量
    807918