[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ‘sudo’ leaves PATH unchanged… so what?

From: Ludovic Courtès
Subject: Re: ‘sudo’ leaves PATH unchanged… so what?
Date: Sat, 19 Jan 2019 23:55:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Danny Milosavljevic <address@hidden> skribis:

> There's an environment variable "SUDO_USER" which still contains the name
> of the original user.
> We could check SUDO_USER instead of USER if USER=root, otherwise check USER.

Or perhaps we could ignore HOME when SUDO_USER is set, and instead honor
/etc/passwd only?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]