nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] preventing a root-owned .nano dir


From: Eitan Adler
Subject: Re: [Nano-devel] preventing a root-owned .nano dir
Date: Wed, 8 Jul 2015 20:49:56 -0700

On 8 July 2015 at 19:44,  <address@hidden> wrote:
> On Wed, 08 Jul 2015 20:40:57 +0200
> Benno Schulenberg <address@hidden> wrote:
>
>> Anyway, the patch prevents the root user from steering
>> through the HOME environment variable where nano will look
>> for its .nanorc file and .nano/ history files.  Would that
>> be an acceptable small sacrifice?  Chris?  Others?
>
> What about `sudo -u another_user nano`? I've seen many broken environments 
> over the years and having nano deal with it sounds like a good idea. But it 
> would be less hacky if it handled both cases, root and other users.

IMHO this is 'expected' behavior: most users should be using sudo -H
and without -H one would expect programs that use HOME to rely on it.
That said, there are probably enough sufficiently broken callers of
sudo out there that it may be worthwhile for nano to do something
about it.



-- 
Eitan Adler



reply via email to

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