unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root
@ 2019-07-10 20:20 Steinar Bang
  2019-07-10 20:50 ` Glenn Morris
  0 siblings, 1 reply; 23+ messages in thread
From: Steinar Bang @ 2019-07-10 20:20 UTC (permalink / raw)
  To: 36583

debian 10 "buster", amd64
GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) of 2019-02-03, modified by Debian

 - I did /bin/su from my own user to root

 - When I started emacs I got the following error message:

 Warning (initialization): An error occurred while loading ‘/home/sb/.emacs’:

File is missing: Cannot open load file, No such file or directory, editorconfig

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

 - Ie. emacs tried to load the original user's .emacs and fails (and the
   configuration of the editor is kind of broken)

Results of HOME and id after su:
root@cadalora:~# env | grep HOME
HOME=/root
root@cadalora:~# id
uid=0(root) gid=0(root) groups=0(root)
root@cadalora:~#


 - When I do "/bin/su - root" then emacs reports no error messages on
   startup

Results of HOME and id looks the same:
root@cadalora:~# env | grep HOME
HOME=/root
root@cadalora:~# id
uid=0(root) gid=0(root) groups=0(root)
root@cadalora:~#





^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2019-08-04 10:57 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 20:20 bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root Steinar Bang
2019-07-10 20:50 ` Glenn Morris
2019-07-11 22:58   ` Stefan Monnier
2019-07-11 23:17     ` Lars Ingebrigtsen
2019-07-12  0:38       ` Stefan Monnier
2019-07-12 14:34         ` Lars Ingebrigtsen
2019-07-12 23:39       ` Richard Stallman
2019-07-13  9:21         ` Andreas Schwab
2019-07-13  9:34           ` Stefan Kangas
2019-07-13 23:02           ` Richard Stallman
2019-07-13 23:16             ` Andreas Schwab
2019-07-13 13:09         ` Stefan Monnier
2019-07-13 23:05           ` Richard Stallman
2019-07-15 12:49             ` Stefan Monnier
2019-07-15 13:04               ` Noam Postavsky
2019-07-15 14:42                 ` Stefan Monnier
2019-07-23 13:53         ` Steinar Bang
2019-07-23 14:30           ` Stefan Monnier
2019-08-04 10:57             ` Steinar Bang
2019-07-12  6:37     ` Eli Zaretskii
2019-07-12 14:46       ` Stefan Monnier
2019-07-12 14:53         ` Eli Zaretskii
2019-07-12 15:00           ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).