all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Tim Johnson <tim@akwebsoft.com>, MLEmacs <Help-gnu-emacs@gnu.org>
Subject: Re: Emacs client doesn't run by root
Date: Mon, 01 Mar 2021 08:00:22 +0200	[thread overview]
Message-ID: <87pn0j9zwp.fsf@iki.fi> (raw)
In-Reply-To: <72ea7a4c-c9e8-3a93-0ed7-aad5b18ee422@akwebsoft.com>

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

* 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.

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

  parent reply	other threads:[~2021-03-01  6:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-28 19:10 Emacs client doesn't run by root Tim Johnson
2021-02-28 20:09 ` Tassilo Horn
2021-02-28 21:54   ` Tim Johnson
2021-03-01  6:00 ` Teemu Likonen [this message]
2021-03-01 18:39   ` Tim Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pn0j9zwp.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=tim@akwebsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.