unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Steinar Bang <sb@dod.no>
To: Richard Stallman <rms@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	36583@debbugs.gnu.org, monnier@iro.umontreal.ca
Subject: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root
Date: Tue, 23 Jul 2019 15:53:04 +0200	[thread overview]
Message-ID: <86muh4svr3.fsf@dod.no> (raw)
In-Reply-To: <E1hm58n-0003kd-LO@fencepost.gnu.org> (Richard Stallman's message of "Fri, 12 Jul 2019 19:39:49 -0400")

>>>>> Richard Stallman <rms@gnu.org>:

> I think I asked for this feature so that when I run Emacs as root I
> will get the commands I am accustomed to.

FWIW What broke things for me, was that it reads the .emacs file from
/home/sb directory, but it doesn't read /home/sb/.emacs.d/elpa/ and
therefore doesn't find the packages my .emacs refers to, so that startup
breaks in the middle of the setup and nothing works as expected.

If it had used my regular config fully, I never would have noticed.

The root user has a functional .emacs, but a much slimmer one. I've
basically customized away the behaviour I dislike. Either .emacs
(ie. /home/sb/.emacs or /root/.emacs) would have worked for me if they
could have run without failing.


(PS sorry for coming late to the discussion I originated. My incoming email
broke as a result of an openssl change in a debian version upgrade and I
haven't received email since July 11 until today, and didn't receive the
initial debbug response. And sorry if I came through as rude on emacs-help)





  parent reply	other threads:[~2019-07-23 13:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86muh4svr3.fsf@dod.no \
    --to=sb@dod.no \
    --cc=36583@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).