On Tue, Jul 09, 2019 at 09:00:11PM +0200, Tomas Nordin wrote: > Perry Smith writes: [...] > >> How can I make emacs stop loading the original user's .emacs when > >> logged in as root? > > > > Can you do “id” after you do the su? Usually “su - root” is the suggested method. > > The ‘-‘ causes the users environment to get loaded or something. Never looked > > too deep into it. > > After su; > > # id > uid=0(root) gid=0(root) groups=0(root) > > After su - root; > > # id > uid=0(root) gid=0(root) groups=0(root) > > but after this latter way of getting root emacs did not try to load > /home/tomas/.emacs > > Just metooing Have you checked the environment? What does $HOME say? (although the "su -" part lets one expect that the HOME var is set anew: checking won't hurt :-) Cheers -- t