unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rabite@posteo.de, 41628@debbugs.gnu.org
Subject: bug#41628: [PATCH] Allow emacsclient to connect to other user's socket when using -s
Date: Wed, 05 Aug 2020 19:32:38 +0200	[thread overview]
Message-ID: <87sgd1hubt.fsf@gnus.org> (raw)
In-Reply-To: <835zcckt1p.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 31 May 2020 18:44:50 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> 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

So unless I understand something here, this is not something we want to
allow (because of security concerns), so I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2020-08-05 17:32 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
2020-08-05 17:32   ` Lars Ingebrigtsen [this message]

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=87sgd1hubt.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=41628@debbugs.gnu.org \
    --cc=eliz@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).