From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Newsgroups: gmane.emacs.help Subject: Share emacs --daemon between 2 users of same host Date: Wed, 05 Dec 2018 16:23:35 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544027017 11310 195.159.176.226 (5 Dec 2018 16:23:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2018 16:23:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 05 17:23:33 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUZxT-0002pg-Kt for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2018 17:23:31 +0100 Original-Received: from localhost ([::1]:35473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUZza-0005lg-5K for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2018 11:25:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUZxo-0004xB-HE for help-gnu-emacs@gnu.org; Wed, 05 Dec 2018 11:23:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUZxh-00017o-RM for help-gnu-emacs@gnu.org; Wed, 05 Dec 2018 11:23:50 -0500 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:55082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gUZxd-0000pI-FT for help-gnu-emacs@gnu.org; Wed, 05 Dec 2018 11:23:43 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id z18so13939337wmc.4 for ; Wed, 05 Dec 2018 08:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=kjyM7TBxkooa5qJoUIEhj4uKt4RZ1oNL2oYKtTCl/7s=; b=hECLCSqn6qkdLaWoej8xtgeH+ulkTitdbUyZpKR6dMYgwdZB9LFe6MkNYy5Rg9ewQb +Oh5CbvlMuXDjY1+eWry59GzJw/2/t04XGGR/Nybg/8BhhqwHIahjchyjgUQYSBGBbZC A/I87/9g8AHaw4vu11+Ck/7etZ8iI/fOlEKUCTU7HHprXmD/9RSHmook0sPjC+V15cmj MbdCxdcTSHYfOdLQ6WWwJvxJh368oM1kptim+VuhzEbcTy+tl7YNaSWY4BGPPsQP0C3Y 9AT/lvNyZhdF78jj73tzqmP7rOhrmpBXlGTTdrKgOW113XmeCg6A6cjALo99t0nFP+GY EhnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=kjyM7TBxkooa5qJoUIEhj4uKt4RZ1oNL2oYKtTCl/7s=; b=MNMmu6Ovhz11ohAmKkrvN9brKclhlwbPNxF6k3iPaAk0aYW/Tw42DIlU17DcD1yaNk /Fx7Z/Jqm2V4TEjuh3MfY6/JcGrmCJpsfqfnzqGRfr8GhskcpgA+nEADGjydWBS+ULFI /fNkjzaH/hz2n5uqJwYD9akMlopAEYpUe/F3mJVeQEbv/qdDkd/9EV0696fJsLqbv+ZU QNdQo4qPd7NgDR7lRuIu77EG2p1YtcCbNzHFTSJsBud2nHfksk80SOjF3iQbM+a/dWAW nsURyE131QgCFxhEjDrjL86dZz3sWtk85nDutJ9lQLxZjqFcVf0FuTdK2FnRZG2q8XHc 4WLA== X-Gm-Message-State: AA+aEWashcsuaXETEcfkAdlqNpI4ujkrc7jpAaMpH9dcVy0o5FPXbt77 r0FU4h8vtv6p/nNzsOI8ZydcRuXL X-Google-Smtp-Source: AFSGD/UDhMfqps31rSiTV6BiTNvm2Agj7D2bJPTMeAKvuF+XUQYdcE4kSF/SJK1XSiyABIK6WUgjaw== X-Received: by 2002:a1c:1b86:: with SMTP id b128mr16102721wmb.30.1544027018511; Wed, 05 Dec 2018 08:23:38 -0800 (PST) Original-Received: from GONDOMAR.yourcompany.com (mail1.siscog.pt. [89.115.233.242]) by smtp.gmail.com with ESMTPSA id p74sm20507933wmd.29.2018.12.05.08.23.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 08:23:37 -0800 (PST) X-Antivirus: AVG (VPS 181205-0, 05-12-2018), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32c X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118865 Archived-At: Hi, What is the recommended way to get 2 (or more) users, say A and B, of the same *nix host, to simulteously connect to the same emacs daemon, each using his own emacsclient? 1. If server-use-tcp is nil, user A starts an emacs daemon which creates a /tmp/emacs/server socket. A connects to it fine. But user B can't pass that as -s to his emacsclient because of insufficient permissions. This is even if A chown/chmods the socket to be more permissive. 2. If server-use-tcp is t, the same user A now creates a ~/.emacs.d/server/server file. Again, A connects fine, but B can't pass thjat as -f to his emacsclient because of insufficient permissions. But even if A chown/chmods its, there is some code that still forbits it. Is this at all possible? I read here[1] that is and that you even get two simultenous cursors if two users are in the same buffer. Thanks, Jo=E3o 1: https://www.reddit.com/r/emacs/comments/7d6hv0/real_time_collaboration_i= n_emacs/dpvhjvu