【问题标题】:What facility does system crontab provide that user crontab for root cannot?系统 crontab 为 root 用户 crontab 提供了哪些功能?
【发布时间】:2014-11-10 05:51:15
【问题描述】:

我将在这里扩展我的问题:

当每个用户(包括 root 用户)都有自己的 crontab 时,系统 crontab 的需要是什么?系统 crontab 的存在似乎重复了功能。系统 crontab 是否更像是 cron 系统历史的神器?

【问题讨论】:

  • 以 root 身份做事不是一个好主意。你真的可以把事情搞砸也许用更少的力量做一些事情是个好主意

标签: linux cron


【解决方案1】:

系统 crontab 是发行版维护人员和应用程序打包人员包含不污染用户 crontab 空间的 cron 作业的好方法。

系统 crontab 文件可以指定运行用户,因此系统 crontab 中并非所有内容都必须以 root 身份运行。

非登录用户没有 crontab,因此放置非登录用户任务的唯一位置是系统 crontab。

通常,您会将本地/自定义内容放在根(或适当的用户)crontab 中,而您不直接维护的预打包内容则存在于系统 crontab 中。

真的,这只是组织问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-29
    • 1970-01-01
    • 2019-07-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多