Remove shadowconfig call
authorChris Hofstaedtler <chris@hofstaedtler.name>
Fri, 17 Nov 2023 16:21:33 +0000 (17:21 +0100)
committerChris Hofstaedtler <chris@hofstaedtler.name>
Fri, 17 Nov 2023 16:21:35 +0000 (17:21 +0100)
passwd.postinst enables shadow passwords for the last 16 years. Add a test
instead.

chroot-script
tests/goss.yaml

index 1bd3abb..a077acd 100755 (executable)
@@ -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'
index 97b75d8..fdf8316 100644 (file)
@@ -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