diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-25 17:22:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-25 17:22:46 +0000 |
commit | 7a5002ec9d67515cbeea99a89b94c70dc50456c4 (patch) | |
tree | ebb417aef0fd6cd9e8e0e13410a133e6da9f26b4 /docs | |
parent | dd86bc73fb894a259bf8eca38c074128ad2eb40f (diff) | |
download | upstream-7a5002ec9d67515cbeea99a89b94c70dc50456c4.tar.gz upstream-7a5002ec9d67515cbeea99a89b94c70dc50456c4.tar.bz2 upstream-7a5002ec9d67515cbeea99a89b94c70dc50456c4.zip |
base-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug 18206)
Based on bug #18206 sysupgrade can lead to loss of password information in
certain situations. Most likely all users who will upgrade from versions
r43017-43040, will lose their current passwords. :-(
https://dev.openwrt.org/ticket/18206
Currently /etc/shadow is defined as a conffile in base-files:
https://dev.openwrt.org/browser/trunk/package/base-files/Makefile#L37
But it is not defined in the default list of essential files to keep in
sysupgrade:
https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/keep.d/base-files-essential
If exporting conffiles info fails, /etc/shadow can get lost.
Shadow passwords are now the default, so saying that preserving /etc/passwd
is essential while /etc/shadow is not, makes no sense.
The attached patch adds /etc/shadow to the list of essential files.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
SVN-Revision: 43061
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions