Skip to content

Commit

Permalink
Remove shadowconfig call
Browse files Browse the repository at this point in the history
passwd.postinst enables shadow passwords for the last 16 years. Add a test
instead.
  • Loading branch information
zeha committed Nov 17, 2023
1 parent d275bdf commit 64f1f16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chroot-script
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 7 additions & 0 deletions tests/goss.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
process:
sshd:
running: true

file:
/etc/timezone:
exists: true
Expand All @@ -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

0 comments on commit 64f1f16

Please sign in to comment.