This commit is contained in:
Patrick Schleizer 2025-11-01 03:42:33 -04:00
parent 948c96afe9
commit cfaa953373
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48

View file

@ -96,7 +96,7 @@ sudo_users_check () {
## Prevent users from locking themselves out.
## https://forums.whonix.org/t/is-security-misc-suitable-for-hardening-bridges-and-relays/8299/4
echo "$0: ERROR: No user is a member of group 'sudo'. Installation aborted." >&2
echo "$0: ERROR: No account is a member of group 'sudo'. Installation aborted." >&2
echo "$0: ERROR: You probably want to run:" >&2
echo "$0: NOTE: Replace account 'user' with your actual Linux user account name." >&2
echo "" >&2
@ -146,7 +146,7 @@ console_users_check() {
for user_with_console in $console_users $console_unrestricted_users ; do
if [ "$user_with_console" = "root" ]; then
## root login is also restricted.
## Therefore user "root" being member of group "console" is
## Therefore account "root" being member of group "console" is
## considered insufficient.
continue
fi
@ -163,7 +163,7 @@ console_users_check() {
return 0
fi
echo "$0: ERROR: No user is a member of group 'console'. Installation aborted." >&2
echo "$0: ERROR: No account is a member of group 'console'. Installation aborted." >&2
echo "$0: ERROR: You probably want to run:" >&2
echo "" >&2
echo "sudo adduser user console" >&2
@ -213,7 +213,7 @@ 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 adduser console and pam-auth-update."
true "INFO: Account '$user_to_be_created' does not exist. Skipping adding account '$user_to_be_created' to group 'console' and also skipping 'pam-auth-update --enable console-lockdown-security-misc'."
return 0
fi