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

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改过来即可。

posted @ 2011-11-04 16:20  hello_olduncle  阅读(692)  评论(0编辑  收藏  举报