From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Emacs client doesn't run by root Date: Mon, 01 Mar 2021 08:00:22 +0200 Message-ID: <87pn0j9zwp.fsf@iki.fi> References: <72ea7a4c-c9e8-3a93-0ed7-aad5b18ee422@akwebsoft.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30679"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/27.1.91 (x86_64-pc-linux-gnu) To: Tim Johnson , MLEmacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 01 07:03:45 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 1lGbei-0007rF-Sr for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 07:03:44 +0100 Original-Received: from localhost ([::1]:60224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGbeh-0002kt-L1 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 01:03:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGbbw-0002T7-FD for Help-gnu-emacs@gnu.org; Mon, 01 Mar 2021 01:00:53 -0500 Original-Received: from lahtoruutu.iki.fi ([185.185.170.37]:33216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGbbj-0004nE-ST for Help-gnu-emacs@gnu.org; Mon, 01 Mar 2021 01:00:51 -0500 Original-Received: from mithlond (mobile-access-5d6a16-37.dhcp.inet.fi [93.106.22.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id BE7591B000C8; Mon, 1 Mar 2021 08:00:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1614578428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=snODei82MRBe79xHHI9MJjyPLAMS+bPotpUwMrnB3pQ=; b=F+LdRcpZIBv8sPwp9dq/Dst9lYIgPYOhDiW5bwmXfj79hke3P0dhIg8UQPgxyLkCjwxSPv eWMPyOgW5JcYegFmTe/y+ccxHGAEN0sVKniu/VeJKc9/PH8G15OTYyOe2QWt+G+TE1qzNa RRShW+6OUXf0OCQ+ekdoW/uVoRUMf/9lQ/3tzWNiNf8isgUjoz9K/juT3nV6fePzkjCEjn mwDU3WAe86y0hhmE9qjC9QBY+92GhhUEDgNGM3o7EB8+Hyq9TY0+xbZslfZWTFRtAw39Eu pqHgGyBQLqcQzyaSh8xzyvotMagJizxUIVoBcM0VPJrq+9F4yITrImGsAuTFfA== In-Reply-To: <72ea7a4c-c9e8-3a93-0ed7-aad5b18ee422@akwebsoft.com> ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1614578428; a=rsa-sha256; cv=none; b=mjH3uXc3m4jRb1lOPJ0hcs1/DUEYX2bLeziTAuq2JYempZs7o2sC3vH9d6cyr0naNURVeb /2q0dfNc2RqAgTUxkkjo747Zli5ta0b2huaxcJwFQirbOqLPr+8VN6zWa+t5O9zhPEihxX 1xWYsIg28kgCIeE7XwQX/7GKRi6RziEQ34AJPW/bRnIlb/Dd7jOAz0v31JDoH+EaFENmCz KeMGZ4PfXhSTm0a+Cnqg2JxFU+M3/9GZI5FFAv6PDKtKtNbKTZWphQXogf7OU3OKv4OOyV AMxG8LPiCuuCM9aURr5KHgamavktm64oQuxq4xpyjbcwQnveAf5utk6+BzFjaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1614578428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=snODei82MRBe79xHHI9MJjyPLAMS+bPotpUwMrnB3pQ=; b=j7PKq9tdMWdynfuDtgkmcEaX2KpsGHofGf3Ik0O+o9ZV+e4+lpSA5HI4UXjlWR5eYv8io2 hNbcrO2zr5wCC6e6jInLjmfbuJPsqQpJ2HLejA/6X2/WyC74mnO/vGj0teKZIq3R//nneR uhbRgTNIqQMSG6HsylDfNgX3b8hCF3aw/VEae1LI+kA5ftDzkjPwahlfW5/uSochGwt3Qk 1jLyaRsYCN+2CQ2jfhoCGE0uXJBFZnUy10htE6s3crSiATqDqkVm0Qt1CMstZAhC0bGP+t ejxes9cgvniS2CZqdpQ+jLDhGgyfU6VWCBs0A30nrx022bZOBERmnTFL2jZy3Q== Received-SPF: pass client-ip=185.185.170.37; envelope-from=tlikonen@iki.fi; helo=lahtoruutu.iki.fi X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:128325 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * 2021-02-28 10:10:05-0900, Tim Johnson wrote: > I have been using the emacs daemon as my system editor. > Works fine as user tim, but if I try it as root, I get the following > error message: Another option is to use "sudoedit" (or "sudo -e") instead of "sudo emacsclient". "sudoedit" uses root access to copy the target file to a temporary location for the current user. Then it starts editing the file with user's default text editor and finally moves the temporary file to the original location. This way the editor doesn't run as the root user. =2D-=20 /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCYDyC9hAcdGxpa29uZW5A aWtpLmZpAAoJEK2ddavulMJzBGYBALJeKY9uPWgDb7L2jBZBdigrkJ0dzkJQ+Fx2 G0rTI6pgAQDYJ4kwmJKNaxAxDLW5erQ16nO05Ptvyb0POeV5jpRXCg== =GOA2 -----END PGP SIGNATURE----- --=-=-=--