From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Emacs client doesn't run by root Date: Sun, 28 Feb 2021 10:10:05 -0900 Message-ID: <72ea7a4c-c9e8-3a93-0ed7-aad5b18ee422@akwebsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15937"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: MLEmacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 28 20:10:50 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGRSr-00041s-Mq for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 20:10:49 +0100 Original-Received: from localhost ([::1]:54190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGRSq-0003na-Or for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 14:10:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGRSP-0003nF-Tj for help-gnu-emacs@gnu.org; Sun, 28 Feb 2021 14:10:21 -0500 Original-Received: from gateway34.websitewelcome.com ([192.185.148.142]:40490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGRSO-0002Ib-Bl for help-gnu-emacs@gnu.org; Sun, 28 Feb 2021 14:10:21 -0500 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway34.websitewelcome.com (Postfix) with ESMTP id BD0AC2770D7 for ; Sun, 28 Feb 2021 13:10:07 -0600 (CST) Original-Received: from host2075.hostmonster.com ([67.20.113.97]) by cmsmtp with SMTP id GRSBlYoDeABzoGRSBllcEi; Sun, 28 Feb 2021 13:10:07 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tj49.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fRASeIuqDSv/e5PPLhngNbmt9mSzJF506Ab4JMf2y40=; b=ckYlV/U5RUqX2Y/xjo7djSF+w6 pIMPuEJPamhJC8Woe2eCpPmvLrc91NlY6v8w7sKHfsFwy4uTOQK1DvUa6LBPzUrTsI5ZjA1exbxLR zJ+BVG8U88YTXARAxridCSqqg; Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:48568 helo=[192.168.1.6]) by host2075.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lGRSB-003Jun-4K for Help-gnu-emacs@gnu.org; Sun, 28 Feb 2021 12:10:07 -0700 Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2075.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - akwebsoft.com X-BWhitelist: no X-Source-IP: 64.4.232.191 X-Source-L: No X-Exim-ID: 1lGRSB-003Jun-4K X-Source-Sender: tjohnson.mtaonline.net ([192.168.1.6]) [64.4.232.191]:48568 X-Source-Auth: tim@tj49.com X-Email-Count: 1 X-Source-Cap: bW9sZG92YXM7bW9sZG92YXM7aG9zdDIwNzUuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: neutral client-ip=192.185.148.142; envelope-from=tim@akwebsoft.com; helo=gateway34.websitewelcome.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128320 Archived-At: I have been using the emacs daemon as my system editor. Starting with the following script ;; code emacs -q -nw --no-splash --daemon -l ~/.emacs.d/init_term.el ;; end code Works fine as user tim, but if I try it as root, I get the following error message: ;; quote /usr/local/bin/emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". /usr/local/bin/emacsclient: No socket or alternate editor.  Please use:     --socket-name     --server-file      (or environment variable EMACS_SERVER_FILE)     --alternate-editor (or environment variable ALTERNATE_EDITOR) ;; end quote What else needs to be done? Using emacs GNU Emacs 26.3 on ubuntu 16.04 thanks -- Tim tj49.com