[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs client doesn't run by root
From: |
Tim Johnson |
Subject: |
Emacs client doesn't run by root |
Date: |
Sun, 28 Feb 2021 10:10:05 -0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
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
- Emacs client doesn't run by root,
Tim Johnson <=