From 52e5a2c9face872421e2ebe52da1935a25106c9e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 5 Sep 2018 15:52:23 +0200 Subject: [PATCH] force admin to change the password --- quirks/nss_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quirks/nss_db.sh b/quirks/nss_db.sh index 8194746..d09ab54 100644 --- a/quirks/nss_db.sh +++ b/quirks/nss_db.sh @@ -14,7 +14,7 @@ chroot "$sysroot" bash -c 'make -C /var/db /usr/db/passwd.db /usr/db/shadow.db / mv "$sysroot"/etc/group.admin "$sysroot"/etc/group mv "$sysroot"/etc/gshadow.admin "$sysroot"/etc/gshadow chroot "$sysroot" bash -c 'useradd admin; usermod -a -G wheel admin; echo -n admin | passwd --stdin admin' -#chroot "$sysroot" bash -c 'passwd -e admin' +chroot "$sysroot" bash -c 'passwd -e admin' mkdir -p "$sysroot"/usr/share/factory/var mv "$sysroot"/etc/passwd "$sysroot"/etc/sub{u,g}id "$sysroot"/etc/shadow "$sysroot"/etc/group "$sysroot"/etc/gshadow "$sysroot"/usr/share/factory/var