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

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

Re: sudo emacsclient can't find the path to the user emacsserver.


From: PJ Weisberg
Subject: Re: sudo emacsclient can't find the path to the user emacsserver.
Date: Tue, 25 Oct 2011 15:09:06 -0700

Short version:

$ export EDITOR='emacsclient -c'
$ sudoedit /etc/foo.conf

Of course emacsclient can't find the Emacs server when you run it as root--root isn't running an Emacs server.

Furthermore, if root's emacsclient *did* connect to the normal user's Emacs server, you would have the normal user's permissions and still wouldn't be able to edit the file.  ;-)

--

-PJ

reply via email to

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