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

本文提供了解决HP-UX11.11系统中crontab配置错误的方法,包括权限调整、shell变量检查及修改,确保crontab任务能够正常执行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

转载于:https://www.cnblogs.com/helloolduncle/archive/2011/11/04/2236396.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值