[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs creates emacs.d/ as root when using sudo
From: |
Andreas Schwab |
Subject: |
Re: Emacs creates emacs.d/ as root when using sudo |
Date: |
Tue, 02 Jul 2019 08:34:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) |
On Jul 02 2019, Stefan Monnier <address@hidden> wrote:
>> $ sudo emacs /etc/default/motd-news
>
> I'd consider the above as a pilot error.
>
> If you use sudo naively like above, the $HOME is still that of the
> invoking user,
It's really a misconfiguration of sudo if it doesn't reset HOME.
Andreas.
--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
- Emacs creates emacs.d/ as root when using sudo, Jeffrey Walton, 2019/07/01
- Re: Emacs creates emacs.d/ as root when using sudo, Stefan Monnier, 2019/07/02
- Re: Emacs creates emacs.d/ as root when using sudo,
Andreas Schwab <=
- Re: Emacs creates emacs.d/ as root when using sudo, Stefan Monnier, 2019/07/02
- Re: Emacs creates emacs.d/ as root when using sudo, Lars Ingebrigtsen, 2019/07/02
- Re: Emacs creates emacs.d/ as root when using sudo, Eli Zaretskii, 2019/07/02
- Re: Emacs creates emacs.d/ as root when using sudo, Lars Ingebrigtsen, 2019/07/02
- Re: Emacs creates emacs.d/ as root when using sudo, Stefan Monnier, 2019/07/02
Re: Emacs creates emacs.d/ as root when using sudo, Teemu Likonen, 2019/07/02