unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs client doesn't run by root
@ 2021-02-28 19:10 Tim Johnson
  2021-02-28 20:09 ` Tassilo Horn
  2021-03-01  6:00 ` Teemu Likonen
  0 siblings, 2 replies; 5+ messages in thread
From: Tim Johnson @ 2021-02-28 19:10 UTC (permalink / raw)
  To: MLEmacs

I have been using the emacs daemon as my system editor.
Starting with the following script
;; code
emacs -q -nw --no-splash --daemon -l ~/.emacs.d/init_term.el
;; end code

Works fine as user tim, but if I try it as root, I get the following error
message:
;; quote
/usr/local/bin/emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
/usr/local/bin/emacsclient: No socket or alternate editor.  Please use:

     --socket-name
     --server-file      (or environment variable EMACS_SERVER_FILE)
     --alternate-editor (or environment variable ALTERNATE_EDITOR)
;; end quote

What else needs to be done?

Using emacs GNU Emacs 26.3 on ubuntu 16.04

thanks

-- 
Tim
tj49.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-01 18:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).