From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeffrey Walton Newsgroups: gmane.emacs.devel Subject: Emacs creates emacs.d/ as root when using sudo Date: Mon, 1 Jul 2019 14:01:58 -0400 Message-ID: Reply-To: noloader@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="202779"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 01 23:02:47 2019 Return-path: Envelope-to: ged-emacs-devel@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 1hi3Rn-000qdv-Bu for ged-emacs-devel@m.gmane.org; Mon, 01 Jul 2019 23:02:47 +0200 Original-Received: from localhost ([::1]:45508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hi3Rm-0002PS-5H for ged-emacs-devel@m.gmane.org; Mon, 01 Jul 2019 17:02:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44372) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hi3DG-0000pm-8u for emacs-devel@gnu.org; Mon, 01 Jul 2019 16:47:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hi3DD-0000yu-4G for emacs-devel@gnu.org; Mon, 01 Jul 2019 16:47:44 -0400 Original-Received: from mail-io1-f46.google.com ([209.85.166.46]:45980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hi3DC-0000u8-QC for emacs-devel@gnu.org; Mon, 01 Jul 2019 16:47:42 -0400 Original-Received: by mail-io1-f46.google.com with SMTP id e3so31883884ioc.12 for ; Mon, 01 Jul 2019 13:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=mCd9km1kvoSdNSJBnmE08O5WgxBxQyxb0urOJbwnRUc=; b=nPWVGXr5y5x9rTpAtRz6t3uXNa/h7K+rJUt+IHQiTpQZeXHGL6mq5EsGV8srytXi9O 4CAPTUzuGKHlI7o8zftaZwoMSyFME971wXcLshbMF5oDWYCiCOtE4qXN3RMWNgo4XLLy CxJrFYpWUrT2Eg4OJZAJmtU8LpV8La5LnVYxxfdV+HZ/oH3QzfSNqKlC3VaZgU9A3VkR eYRw6HOovmD5fjSDzzfEwJGGnTBd8m6xdIVn9vfi7T5tFPwFfcuN8o7+DOjQ0rnI5CQH WgrPgs3lsHE5G2Eg+XCxh0Sj2usMXWJk5LTUxbM7XxVtkppLn2FJ0a7e/9qJbRbwQb59 O7SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=mCd9km1kvoSdNSJBnmE08O5WgxBxQyxb0urOJbwnRUc=; b=BoX9MFyzJlnuXDN3CLT5Y0/u240jbKBfFvcIRaA9C+JyKHHiaP/0ZlFccj/KaX68Yg Jnccp/CWbFyY2Na0m2mQs2MD/tSw8LP1ehcv1HEihOAyRHcrwe/v3WRgJlIUMpaAhPvC XQSgRw2z+vcpme/163ucPaB0ZOJ35LznsYoCIjJGa60BHFEeedoOI0Ymut4Z1JWFmNME anu7B7tTbynsmLdThUcIah0n59yyUaHJM15NWUe41qExiaTCSnRlfSeJ2vTqZt3bi1jP UIB8Yilyk7+TTNlc8NMeiFhng3WEXyIvkfYYQe6BxJgygmEITPf7cSQ7q/3BT9kXTR1M yRuw== X-Gm-Message-State: APjAAAUvF2ycfY0IkI5cAU8UW5Rdrp4Fa3lW7mt3SBSvo2wSyc9iXg3M L2pS3ntkbn5rMkwBJYJg1YquscBPjJQgmV/ECQrWbrYE X-Google-Smtp-Source: APXvYqxuOVmMI2tr8GOf6PWN6gipzxbLblM3bHkh+rFkSH8/nqcOaKqzJDXbEIRiGlw8WzGl7eF9bQPr4KaZ8sO/4zg= X-Received: by 2002:a6b:5a17:: with SMTP id o23mr1884234iob.41.1562004145693; Mon, 01 Jul 2019 11:02:25 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.166.46 X-Mailman-Approved-At: Mon, 01 Jul 2019 16:54:36 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238274 Archived-At: Hi Everyone, I think this is unexpected behavior: $ sudo apt-get install emacs-nox $ sudo emacs /etc/default/motd-news $ ls -Al ~ | grep emacs $ drwx------ 2 root root 4096 Jul 1 13:56 .emacs.d Then, when I use emacs as non-sudo, I am nagged with: Warning (initialization): Unable to access `user-emacs-directory' (~/.emacs.d/) I think emacs should be creating files in user's $HOME as $SUDO_USER, not root. Or, emacs should be creating .emacs.d/ in /root, not user's $HOME. Jeff