From 64f1f16059d1fbd17799733576fc36d4d901b6d3 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Fri, 17 Nov 2023 17:21:33 +0100 Subject: [PATCH] Remove shadowconfig call passwd.postinst enables shadow passwords for the last 16 years. Add a test instead. --- chroot-script | 3 --- tests/goss.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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 -- 2.1.4