From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: How to make emacs stop trying to load /home/sb/.emacs after su to root? Date: Thu, 11 Jul 2019 21:56:17 -0500 Message-ID: <3D7E0823-F1A4-4C32-8177-143BF1736B6C@easesoftware.com> References: <864l3w18ae.fsf@dod.no> <86bly0xxit.fsf@dod.no> <867e8oxx2q.fsf@dod.no> Mime-Version: 1.0 (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="18525"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Steinar Bang Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 05:10:00 2019 Return-path: Envelope-to: geh-help-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 1hllwc-0004QH-K0 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 05:09:58 +0200 Original-Received: from localhost ([::1]:46336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hllkJ-0001Q4-1N for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2019 22:57:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50414) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hllkF-0001Ps-9U for help-gnu-emacs@gnu.org; Thu, 11 Jul 2019 22:57:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hllkD-00030r-Ah for help-gnu-emacs@gnu.org; Thu, 11 Jul 2019 22:57:11 -0400 Original-Received: from bisque.elm.relay.mailchannels.net ([23.83.212.18]:29315) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hllkB-0002au-Nk for help-gnu-emacs@gnu.org; Thu, 11 Jul 2019 22:57:08 -0400 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AC2F8501BFB; Fri, 12 Jul 2019 02:56:25 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (100-96-11-126.trex.outbound.svc.cluster.local [100.96.11.126]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id B79A950189A; Fri, 12 Jul 2019 02:56:24 +0000 (UTC) X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from mi3-ss4.a2hosting.com ([TEMPUNAVAIL]. [68.66.200.199]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Fri, 12 Jul 2019 02:56:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Lonely-Company: 13ae15443b34cbcb_1562900185393_3890721906 X-MC-Loop-Signature: 1562900185392:1603734309 X-MC-Ingress-Time: 1562900185392 Original-Received: from mobile-107-92-62-87.mycingular.net ([107.92.62.87]:31418 helo=[10.141.1.69]) by mi3-ss4.a2hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hlljO-0075tp-Pt; Thu, 11 Jul 2019 22:56:18 -0400 X-Mailer: iPad Mail (16F203) In-Reply-To: <867e8oxx2q.fsf@dod.no> X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121160 Archived-At: > On Jul 11, 2019, at 1:09 PM, Steinar Bang wrote: >=20 > Google was more helpful: > https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html#Fi= nd-Init =46rom your reference: More precisely, Emacs first determines which user's init file to use. It get= s your user name from the environment variables LOGNAME andUSER; if neither o= f those exists, it uses effective user-ID. If that user name matches the rea= l user-ID, then Emacs uses HOME; otherwise, it looks up the home directory c= orresponding to that user name in the system's data base of users. Is USER or LOGNAME set? If not, would setting one of those be easier? You said this is new behavior. Are you sure of that? The page your referen= ce seems all perfectly normal way things work. Last, in another email you said that if you =E2=80=9Csu - root=E2=80=9D, the= n it is set to =E2=80=9C=E2=80=9D. That seems weird too. Is that before ~r= oot/.emacs.el et. al. doesn=E2=80=99t exist? pedz