all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Johnson <tim@akwebsoft.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs client doesn't run by root
Date: Mon, 1 Mar 2021 09:39:38 -0900	[thread overview]
Message-ID: <2f231c50-949c-51d6-0824-a6c27c79cb45@akwebsoft.com> (raw)
In-Reply-To: <87pn0j9zwp.fsf@iki.fi>



On 2/28/21 9:00 PM, Teemu Likonen wrote:
> * 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.
Cool. Thanks!

-- 
Tim
tj49.com




      reply	other threads:[~2021-03-01 18:39 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
2021-03-01 18:39   ` Tim Johnson [this message]

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=2f231c50-949c-51d6-0824-a6c27c79cb45@akwebsoft.com \
    --to=tim@akwebsoft.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.