From 86114cf8e1b0643f5e96b62e0f72424da70ec3da Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Thu, 1 Feb 2024 21:13:17 +0100 Subject: [PATCH] export: do not use sudo login Signed-off-by: Luca Di Maio --- distrobox-export | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrobox-export b/distrobox-export index 399a3de31e..082d7cc58c 100755 --- a/distrobox-export +++ b/distrobox-export @@ -217,7 +217,7 @@ fi # Command to execute container_command_suffix="${exported_bin} ${extra_flags} \"\$@\"" -sudo_prefix="sudo -S -i -u ${USER}" +sudo_prefix="sudo -S -u ${USER}" # Edge case for systems without sudo if command -v su-exec > /dev/null >&1; then @@ -227,7 +227,7 @@ fi # Check if exported application/binary should be run with sudo privileges if [ "${is_sudo}" -ne 0 ]; then - sudo_prefix="sudo -S -i" + sudo_prefix="sudo -S" # Edge case for systems without sudo if command -v su-exec > /dev/null >&1; then