Re: [sudo-users] how sudo handles $HOME

2019-05-18 Thread Todd C. Miller
On Thu, 16 May 2019 07:48:40 -0400, Dan Streetman wrote: > I've cc'ed sudo-users, so the question to the upstream sudo list can > be summarized as: > How likely would it be for upstream sudo to add HOME to env_keep by default? Extremely unlikely. Prior to sudo 1.7.4 the HOME and MAIL

Re: how sudo handles $HOME

2019-05-16 Thread Dan Streetman
On Thu, May 16, 2019 at 6:35 AM Carl Friis-Hansen wrote: > > On 5/16/19 3:03 AM, Alex Murray wrote: > > > > On Wed, 2019-05-15 at 02:42:56 +0930, Dan Streetman wrote: > > > >> in Ubuntu, sudo retains the calling user's $HOME > >> > >> this is different from upstream sudo as well as all other

Re: how sudo handles $HOME

2019-05-16 Thread Dan Streetman
Good question. I've cc'ed sudo-users, so the question to the upstream sudo list can be summarized as: How likely would it be for upstream sudo to add HOME to env_keep by default? We ask because Ubuntu carries a patch that adds HOME to env_keep, unlike the default upstream, or any other

Re: how sudo handles $HOME

2019-05-16 Thread Carl Friis-Hansen
On 5/16/19 3:03 AM, Alex Murray wrote: On Wed, 2019-05-15 at 02:42:56 +0930, Dan Streetman wrote: in Ubuntu, sudo retains the calling user's $HOME this is different from upstream sudo as well as all other UNIXes and even the sudo documentation we provide. Should we remove our custom patch

Re: how sudo handles $HOME

2019-05-16 Thread Robie Basak
On Tue, May 14, 2019 at 01:12:56PM -0400, Dan Streetman wrote: > in Ubuntu, sudo retains the calling user's $HOME > > this is different from upstream sudo as well as all other UNIXes and > even the sudo documentation we provide. Should we remove our custom > patch that adds this behavior? Does

Re: how sudo handles $HOME

2019-05-15 Thread Alex Murray
On Wed, 2019-05-15 at 02:42:56 +0930, Dan Streetman wrote: > in Ubuntu, sudo retains the calling user's $HOME > > this is different from upstream sudo as well as all other UNIXes and > even the sudo documentation we provide. Should we remove our custom > patch that adds this behavior? I would

how sudo handles $HOME

2019-05-14 Thread Dan Streetman
in Ubuntu, sudo retains the calling user's $HOME this is different from upstream sudo as well as all other UNIXes and even the sudo documentation we provide. Should we remove our custom patch that adds this behavior? for reference and more details on downsides of our current sudo behavior, see: