From: Eli Zaretskii <eliz@gnu.org>
To: rabite@posteo.de
Cc: 41628@debbugs.gnu.org
Subject: bug#41628: [PATCH] Allow emacsclient to connect to other user's socket when using -s
Date: Sun, 31 May 2020 18:44:50 +0300 [thread overview]
Message-ID: <835zcckt1p.fsf@gnu.org> (raw)
In-Reply-To: <e7553a6d136183493dd91f2e237266e9@posteo.de> (message from rabite on Sun, 31 May 2020 15:51:02 +0200)
> Date: Sun, 31 May 2020 15:51:02 +0200
> From: rabite <rabite@posteo.de>
>
> Since commit 5c0d8bb95bbd5354e6b2cd2e56a91afe4e780759 emacsclient won't
> connect to my usual emacs session when run as root. I use this all the
> time to edit files, combined with "-T /sudo:root@localhost" to handle
> permissions. Using a separate emacs process would be unpractical as it
> would require setting up a whole new emacs configuration and keeping it
> in sync with my main one. I think this is a common use-case for those
> who have an emacs-server running all the time and supporting it makes a
> lot of sense. In principle I see no reason emacsclient should refuse a
> connection that is possible in theory.
>
> It looks like this "feature" has been explicitly disabled, maybe because
> it might triggered unintentionally if running su doesn't set USER or
> something?
The discussion which led to that change is here:
https://lists.gnu.org/r/emacs-devel/2018-11/msg00019.html
next prev parent reply other threads:[~2020-05-31 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-31 13:51 bug#41628: [PATCH] Allow emacsclient to connect to other user's socket when using -s rabite
2020-05-31 15:44 ` Eli Zaretskii [this message]
2020-08-05 17:32 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=835zcckt1p.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=41628@debbugs.gnu.org \
--cc=rabite@posteo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).