From 7422542236cf913708e2c042826e6f26d3d06e21 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 29 Oct 2020 13:39:34 -0400 Subject: [PATCH] port from useradd to adduser https://forums.whonix.org/t/system-wide-sandboxing-framework-sandbox-app-launcher/9008/205 --- usr/bin/sandbox-app-launcher | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/bin/sandbox-app-launcher b/usr/bin/sandbox-app-launcher index 71bc5b4..3f77387 100755 --- a/usr/bin/sandbox-app-launcher +++ b/usr/bin/sandbox-app-launcher @@ -91,7 +91,11 @@ setup() { fi if ! getent passwd | sed -e 's/:.*//g' | grep -qw "${app_user}"; then - useradd -m -d "${app_homedir}" -s /sbin/nologin "${app_user}" + adduser --no-create-home --disabled-login --gecos "" "${app_user}" + fi + + if ! [ -d "${app_homedir}" ]; then + mkdir --parents "${app_homedir}" fi if ! [ "$(stat -c %a "${app_homedir}")" = "700" ]; then