[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs client doesn't run by root
From: |
Teemu Likonen |
Subject: |
Re: Emacs client doesn't run by root |
Date: |
Mon, 01 Mar 2021 08:00:22 +0200 |
User-agent: |
Notmuch/0.31.4 (https://notmuchmail.org) Emacs/27.1.91 (x86_64-pc-linux-gnu) |
* 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
signature.asc
Description: PGP signature
- Re: Emacs client doesn't run by root,
Teemu Likonen <=