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
应该得到这样的显示:
[@more@]
已经将用户添加到/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
如果保存时有警告:
warning: commands will be executed using /usr/bin/sh
检查一下用户的SHELL变量是否是/usr/bin/sh。如果不是,修改.profile改过来即可。
[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/785781/viewspace-1055680/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/785781/viewspace-1055680/