aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorRucke Teg <rucketeg@protonmail.com>2022-02-22 22:53:25 +0100
committerPaul Spooren <mail@aparcar.org>2022-02-24 18:10:30 +0100
commite040d31177b1507ccac965adc18f2e968310b5c3 (patch)
tree443087c5590daf6e9cbd3b707f0e4b85ceeaa9f4 /package/base-files
parente8d048c5e0ad0807a0362fe31c68c8f5eb228bff (diff)
downloadupstream-e040d31177b1507ccac965adc18f2e968310b5c3.tar.gz
upstream-e040d31177b1507ccac965adc18f2e968310b5c3.tar.bz2
upstream-e040d31177b1507ccac965adc18f2e968310b5c3.zip
base-file: remove password aging feature form /etc/shadow
In the default shadow file, as visible in the failsafe mode, the user root has value of `0` set in the 3rd field, the date of last password change. This setting means that the password needs to be changed the next time the user will log in the system. `dropbear` server is ignoring this setting but `openssh-server` tries to enforce it and fails in the failsafe mode because the rootfs is R/O. Disable the password aging feature for user root by setting the 3rd filed empty. Signed-off-by: Rucke Teg <rucketeg@protonmail.com>
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/etc/shadow2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/shadow b/package/base-files/files/etc/shadow
index 4b4154f21f..39bdb9c90a 100644
--- a/package/base-files/files/etc/shadow
+++ b/package/base-files/files/etc/shadow
@@ -1,4 +1,4 @@
-root::0:0:99999:7:::
+root:::0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::