[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su
From: |
Stefan Monnier |
Subject: |
bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root |
Date: |
Thu, 11 Jul 2019 18:58:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> This is explicitly documented in the manual.
> "How Emacs Finds Your Init File".
FWIW, I find this behavior very surprising (and dangerous).
Apparently you can circumvent it by setting LOGNAME to "root".
I can't find the place in code which distinguishes this case from the
case where the user doesn't `su` but instead sets his $HOME to some
other place, such as:
HOME=/home/monnier/tmp/home emacs
BTW, thinking about "dangerous" above, I guess the behavior might make
sense when you're `su`ing *from* root rather than the other way around.
Stefan
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Steinar Bang, 2019/07/10
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Glenn Morris, 2019/07/10
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root,
Stefan Monnier <=
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Richard Stallman, 2019/07/12
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Andreas Schwab, 2019/07/13
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Stefan Kangas, 2019/07/13
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Richard Stallman, 2019/07/13
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Andreas Schwab, 2019/07/13
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Stefan Monnier, 2019/07/13
- bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root, Richard Stallman, 2019/07/13