Crontab 指定执行用户
最近有个问题困扰我.crontab 执行脚本生成文件都是root 用户.web 写文件 apache 用户 造成apache 和root 同时写一份日志 apache 权限不足!!解决方案 :
vim /etc/crontab
* * * * * user-name command to be executedSHELL=/bin/bash
PATH=/sbin:/bin:/usr...
2018-03-02