help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs client doesn't run by root


From: Tim Johnson
Subject: Re: Emacs client doesn't run by root
Date: Mon, 1 Mar 2021 09:39:38 -0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0



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 via email to

[Prev in Thread] Current Thread [Next in Thread]