From f0fd264f5ef2421cd4266bf589df4754d638b403 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Nov 2014 06:00:29 +0100 Subject: [PATCH] don't use cached sudo password in un/installer --- tools/linux_packaging/stage2.run | 2 ++ tools/linux_packaging/uninstall.sh.in | 2 ++ 2 files changed, 4 insertions(+) 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;