Condition: If the user has existed, (test:test)
usermod -G test,cron testIn short, add the user to the group 'cron'.
If it still doesn't work, try the code below:
chmod u+s /usr/bin/crontab
本文介绍如何将已存在的用户添加到特定的cron组中,包括使用usermod命令进行组别修改的方法,以及当遇到权限问题时如何通过设置crontab的用户权限位来解决。
Condition: If the user has existed, (test:test)
usermod -G test,cron test
If it still doesn't work, try the code below:
chmod u+s /usr/bin/crontab

被折叠的 条评论
为什么被折叠?