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 }