From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.bugs Subject: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root Date: Wed, 10 Jul 2019 21:20:14 +0100 Message-ID: <87ims94p6p.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147926"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: 36583@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 10 22:24:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlJ8U-000cGU-Lw for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 22:24:18 +0200 Original-Received: from localhost ([::1]:36808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlJ8P-0002tX-9J for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 16:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57769) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlJ8F-0002jl-VC for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 16:24:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlJ8F-0003qz-0o for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 16:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlJ8E-0003qn-TK for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 16:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlJ8E-0007Ad-MO for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 16:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steinar Bang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2019 20:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36583 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156279022427538 (code B ref -1); Wed, 10 Jul 2019 20:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jul 2019 20:23:44 +0000 Original-Received: from localhost ([127.0.0.1]:36674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlJ7w-0007A6-5Y for submit@debbugs.gnu.org; Wed, 10 Jul 2019 16:23:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlJ7u-00079x-7Y for submit@debbugs.gnu.org; Wed, 10 Jul 2019 16:23:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57508) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlJ7s-0001yJ-A3 for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 16:23:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlJ7q-0003BS-AK for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 16:23:40 -0400 Original-Received: from cadalora.default.sbang.uk0.bigv.io ([46.43.15.90]:54952 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hlJ7n-0002d8-Ka for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2019 16:23:36 -0400 Original-Received: from lorenzo (cm-84.212.50.160.getinternet.no [84.212.50.160]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id E536FCDF2E for ; Wed, 10 Jul 2019 21:23:14 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162660 Archived-At: 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 =E2=80=98/home/s= b/.emacs=E2=80=99: File is missing: Cannot open load file, No such file or directory, editorco= nfig To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the =E2=80=98--debug-init=E2=80=99 option to view a complete error backtrac= e. - 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=3D/root root@cadalora:~# id uid=3D0(root) gid=3D0(root) groups=3D0(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=3D/root root@cadalora:~# id uid=3D0(root) gid=3D0(root) groups=3D0(root) root@cadalora:~#