help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to make emacs stop trying to load /home/sb/.emacs after su to ro


From: Nick Dokos
Subject: Re: How to make emacs stop trying to load /home/sb/.emacs after su to root?
Date: Wed, 10 Jul 2019 10:42:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

address@hidden writes:

> ...
> But we don't know (yet) whether an env variable is the culprit
> (although it seems compelling...)
>

man su says:

       For  backward  compatibility,  su  defaults to not change the current 
directory and to
       only set the environment variables HOME and SHELL (/plus USER and 
LOGNAME if the target
       user is not root/).  It is recommended to always use the --login option 
(instead of its
       shortcut -) to avoid side effects caused by mixing environments.

[emphasis added].

That might have something to do with it. What happens with ~ might also
matter. How does emacs find the init file?

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




reply via email to

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