开发者

Is it safe to execute cron jobs from the root account?

Is it safe to execute cron jobs from the root account?

(the job is supposed to se开发者_开发百科nd log files via email)


It's as safe as running anything else as root. If you know that he script you are running is safe, or if it absolutely requires root privileges (preferably both conditions should be true), then run it as root. Otherwise, run it as a task-specific user (database user, backup user, etc) with the appropriate permissions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜