emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#19477: closed (24.4; Init script from su terminal)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19477: closed (24.4; Init script from su terminal)
Date: Wed, 31 Dec 2014 19:35:01 +0000

Your message dated Wed, 31 Dec 2014 20:34:13 +0100
with message-id <address@hidden>
and subject line 24.4; Init script from su terminal
has caused the debbugs.gnu.org bug report #19477,
regarding 24.4; Init script from su terminal
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19477: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19477
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.4; Init script from su terminal Date: Wed, 31 Dec 2014 17:36:58 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
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?




--- End Message ---
--- Begin Message --- Subject: 24.4; Init script from su terminal Date: Wed, 31 Dec 2014 20:34:13 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Glenn Morris <address@hidden> writes:

> Emacs is behaving as documented.
>
> The `su' programs from coreutils (it's since been removed in favour of
> the util-linux one) and util-linux (as used by eg Red Hat) do not change
> LOGNAME or USER when su'ing to root.
>
> It seems that Debian's `su' comes from the `shadow' package and does
> change them.

Thanks for replying. I see now that most of the environment variables
are kept with the `-p' option.


--- End Message ---

reply via email to

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