From b5cd5330312f7d66c93e7c2aa0a1dd1960997c4f Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sun, 21 Jan 2024 12:55:32 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20pr=C3=A9server=20l'environnement?= =?UTF-8?q?=20sauf=20le=20homedir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/qemush b/bin/qemush index 416db63..5c23640 100755 --- a/bin/qemush +++ b/bin/qemush @@ -8,7 +8,7 @@ exec_as() { shift if [ "$(whoami)" != "$user" ]; then - exec sudo -u "$user" "$0" "$@" + exec sudo -E -H -u "$user" -- "$0" "$@" fi }