From 272a33fe2c3c7666de96f9037094db8e9ab8e09e Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 13 Aug 2022 11:35:25 -0400 Subject: [PATCH] addgroup -> adduser fix --- debian/security-misc.preinst | 8 ++++---- usr/libexec/security-misc/pam-info | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst index beeb62b..67eeb24 100644 --- a/debian/security-misc.preinst +++ b/debian/security-misc.preinst @@ -22,7 +22,7 @@ user_groups_modifications() { ## group 'sudo' membership required to use 'su' ## /usr/share/pam-configs/wheel-security-misc - addgroup root sudo + adduser root sudo ## Useful to create groups in preinst rather than postinst. ## Otherwise if a user saw an error message such as this: @@ -45,7 +45,7 @@ user_groups_modifications() { ## In case a system administrator edits /etc/securetty, there is no need to ## block for this to be still blocked by console lockdown. See also: ## https://www.whonix.org/wiki/Root#Root_Login - addgroup root console + adduser root console } output_skip_checks() { @@ -209,11 +209,11 @@ legacy() { user_to_be_created=user if ! id "$user_to_be_created" &>/dev/null ; then - true "INFO: user '$user_to_be_created' does not exist. Skipping addgroup console and pam-auth-update." + true "INFO: user '$user_to_be_created' does not exist. Skipping adduser console and pam-auth-update." return 0 fi - addgroup "$user_to_be_created" console + adduser "$user_to_be_created" console pam-auth-update --enable console-lockdown-security-misc diff --git a/usr/libexec/security-misc/pam-info b/usr/libexec/security-misc/pam-info index 43c5bbb..906fc0d 100755 --- a/usr/libexec/security-misc/pam-info +++ b/usr/libexec/security-misc/pam-info @@ -27,7 +27,7 @@ if [ ! "$grep_result" = "" ]; then echo "$0: To unlock, run the following command as superuser:" >&2 echo "$0: (If you still have a sudo/root shell somewhere.)" >&2 echo "" >&2 - echo "addgroup $PAM_USER console" >&2 + echo "adduser $PAM_USER console" >&2 echo "" >&2 echo "$0: However, possibly unlock procedure is required." >&2 echo "$0: First boot into recovery mode at grub boot menu and then run above command." >&2