gpt4 book ai didi

crontab - 如何授予 cron 作业文件的权限?

转载 作者:行者123 更新时间:2023-12-03 13:44:14 24 4
gpt4 key购买 nike

我已经为我的网站设置了 cron 选项卡。但是我在我的邮件 ID 中收到了类似脚本的“权限被拒绝”这样的消息。任何人都可以帮我告诉可能是什么问题。

谢谢......

最佳答案

设置 crontab 时出现此错误?还是从 cron 运行的脚本?

如果在设置 crontab 时,试试这个:

You type: crontab -e You get: -bash: /usr/bin/crontab: Permission denied

Problem: Your user is not in the cron group.

Solution: As root, edit the /etc/group file, find the cron group and add your user to that line (the usernames are comma-separated). Then re-login as your user.

Verify: Run command "groups". You should see "cron" in there.



(来自 http://www.parseerror.com/argh/crontab-e-Permission-denied.txt)

关于crontab - 如何授予 cron 作业文件的权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/892104/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com