diff --git a/tools/linux_packaging/stage2.run b/tools/linux_packaging/stage2.run index d43e86edd4..6af5b34181 100755 --- a/tools/linux_packaging/stage2.run +++ b/tools/linux_packaging/stage2.run @@ -159,6 +159,8 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi exit + else + sudo -k # make sudo forget about cached credentials fi if ! sudo date; diff --git a/tools/linux_packaging/uninstall.sh.in b/tools/linux_packaging/uninstall.sh.in index 795c5d317d..c1d6cf561e 100644 --- a/tools/linux_packaging/uninstall.sh.in +++ b/tools/linux_packaging/uninstall.sh.in @@ -67,6 +67,8 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi exit + else + sudo -k # make sudo forget about cached credentials fi if ! sudo date;