【问题标题】:How often /etc/shadow file is backed up?/etc/shadow 文件多久备份一次?
【发布时间】:2014-08-21 18:04:22
【问题描述】:

来自 man 5 shadow:

/etc/shadow-

       Backup file for /etc/shadow.

       Note that this file is used by the tools of the shadow toolsuite,
       but not by all user and password management tools.

我想知道的是,这个文件什么时候备份? 是否有配置文件可以更改甚至禁用此备份的频率?

【问题讨论】:

  • 这个问题似乎跑题了,因为它与编程无关。
  • 嗨@EugeneMayevski'EldoSCorp,我应该在哪里问这种问题?可以导出吗?
  • 最有可能在unix.stackexchange.com

标签: linux passwords filesystems


【解决方案1】:

根据我的经验,只要文件被修改,就会备份它们。因此,当用户执行 passwd 更改他/她自己的密码时,影子文件的 /old/ 版本被移动到 /etc/shadow- 并且新版本被写入 /etc/ shadow,同样适用于 /etc/gshadow/etc/gshadow-,但现在为组分配密码并不常见。

http://linux.die.net/man/5/shadow

http://linux.die.net/man/1/passwd

来自影子(5):

文件

  • /etc/passwd

    用户帐户信息。

  • /etc/shadow

    保护用户帐户信息。

  • /etc/shadow-

    /etc/shadow 的备份文件。

请注意,影子工具套件的工具使用此文件,但并非所有用户和密码管理工具都使用此文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-11
    • 1970-01-01
    • 2017-07-19
    • 2015-08-12
    • 1970-01-01
    相关资源
    最近更新 更多