From: Chris Hofstaedtler Date: Fri, 17 Nov 2023 16:21:33 +0000 (+0100) Subject: Remove shadowconfig call X-Git-Tag: v0.105~6^2 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=64f1f16059d1fbd17799733576fc36d4d901b6d3 Remove shadowconfig call passwd.postinst enables shadow passwords for the last 16 years. Add a test instead. --- diff --git a/chroot-script b/chroot-script index 1bd3abb..a077acd 100755 --- a/chroot-script +++ b/chroot-script @@ -384,9 +384,6 @@ passwords() return 0 fi - echo "Activating shadow passwords." - shadowconfig on - CHPASSWD_OPTION= if chpasswd --help 2>&1 | grep -q -- '-m,' ; then CHPASSWD_OPTION='-m' diff --git a/tests/goss.yaml b/tests/goss.yaml index 97b75d8..fdf8316 100644 --- a/tests/goss.yaml +++ b/tests/goss.yaml @@ -1,6 +1,7 @@ process: sshd: running: true + file: /etc/timezone: exists: true @@ -9,3 +10,9 @@ file: filetype: symlink exists: true linked-to: /usr/share/zoneinfo/Europe/Vienna + + # shadow passwords are enabled. + /etc/shadow: + exists: true + /etc/gshadow: + exists: true