ITPub博客

首页 > 数据库 > Oracle > crontab: can't create your crontab file in the crontab directory.

crontab: can't create your crontab file in the crontab directory.

原创 Oracle 作者:cablue 时间:2011-10-08 18:50:42 0 删除 编辑
HP-UX 11.11 crontab
已经将用户添加到/var/adm/cron/cron.allow文件中。
用户执行crontab -e退出保存时,报错如下:
crontab: can't create your crontab file in the crontab directory.
解决方案:
chmod 4555 /usr/bin/crontab
chown root:bin /usr/bin/crontab
应该得到这样的显示:
ll /usr/bin/crontab
-r-sr-xr-x 1 root bin 28672 Jul 18 2002 /usr/bin/crontab
如果保存时有警告:
warning: commands will be executed using /usr/bin/sh

检查一下用户的SHELL变量是否是/usr/bin/sh。如果不是,修改.profile改过来即可。


[@more@]

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

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

注册时间:2008-11-24

  • 博文量
    15
  • 访问量
    39418