tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 844a886da1e0a78f48a219907bad89c69c860f73
parent 7e88c5d07b24a54e8da44dbddcdd95402c95f3ba
Author: Jaromil <jaromil@dyne.org>
Date:   Fri, 18 Nov 2016 19:00:47 +0100

fix sudo execution (patch by robertmx in #223)

tested also in #228, this stops overwriting the $USERNAME
variable which is not really useful (it was used in the previous
privilege escalation model)

Diffstat:
Mtomb | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tomb b/tomb @@ -210,10 +210,10 @@ _whoami() { _verbose "Identified caller: ::1 username:: (::2 UID:::::3 GID::)" $_USER $_UID $_GID # Update USERNAME accordingly if possible - [[ $EUID == 0 && $_USER != $USERNAME ]] && { - _verbose "Updating USERNAME from '::1 USERNAME::' to '::2 _USER::')" $USERNAME $_USER - USERNAME=$_USER - } + # [[ $EUID == 0 && $_USER != $USERNAME ]] && { + # _verbose "Updating USERNAME from '::1 USERNAME::' to '::2 _USER::')" $USERNAME $_USER + # USERNAME=$_USER + # } # Force HOME to _USER's HOME if necessary local home=$(awk -F: "/^$_USER:/ { print \$6 }" /etc/passwd 2>/dev/null)