GNU bug report logs - #19477
24.4; Init script from su terminal

Previous Next

Package: emacs;

Reported by: ibeas <at> gmx.com (Álvar Ibeas)

Date: Wed, 31 Dec 2014 16:38:02 UTC

Severity: minor

Merged with 36583, 36604

Found in version 26.1

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ibeas <at> gmx.com (Álvar Ibeas)
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; Init script from su terminal
Date: Wed, 31 Dec 2014 17:36:58 +0100
Hello,

Working under Debian, when I switch to root using `su', Emacs doesn't
load the init script located in my user's home folder, as the manual
says:

``if you run Emacs from a shell started by `su', Emacs tries to find
your own `.emacs', not that of the user you are currently pretending
to be [...] It gets your user name from the environment variables
`LOGNAME' and `USER'.''

The variables LOGNAME and USER have both the value `root'. The command
`logname' returns instead my own user name.

Is this an Emacs bug?





This bug report was last modified 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.