GNU bug report logs - #22329
24.3; Emacs Tramp feature suggestion: adding sg as a default connection method

Previous Next

Package: emacs;

Reported by: Peng Bai <baipeng <at> sina.com>

Date: Fri, 8 Jan 2016 16:35:02 UTC

Severity: wishlist

Found in version 24.3

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22329 in the body.
You can then email your comments to 22329 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#22329; Package emacs. (Fri, 08 Jan 2016 16:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peng Bai <baipeng <at> sina.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 08 Jan 2016 16:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peng Bai <baipeng <at> sina.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3;
 Emacs Tramp feature suggestion: adding sg as a default connection
 method
Date: Fri, 08 Jan 2016 01:29:59 -0600
Following up a question on Stack Overflow
(http://stackoverflow.com/questions/34643837/in-emacs-how-do-i-use-tramp-ssh-to-edit-as-a-different-group-id):

I suggest adding "sg" as a default connection method. My specific use
case is that I have an account on a server, and that user belongs to
multiple groups (main group "group_A", secondary group "group_B") for
administrative reasons. SELinux Access Control is used so even if a
directory is owned by me, but if my main group ID is not right, I will
not be able to create files. In an interactive session, I would do
"chgrp group_B" to switch my main group, and a new shell session will be
created. If remotely launching a program, I would do "ssh foo.com 'sg
group_B /path/to/executable'".

Currently I add the following to my initialization script:

(eval-after-load 'tramp
  '(add-to-list
    'tramp-methods
    '("sg"
      (tramp-login-program "sg")
      (tramp-login-args (("-") ("%u")))
      (tramp-remote-shell "/bin/sh")
      (tramp-remote-shell-args ("-c")))))

Thank you!

Best regards,

Peng





Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Fri, 15 Jan 2016 10:21:02 GMT) Full text and rfc822 format available.

Notification sent to Peng Bai <baipeng <at> sina.com>:
bug acknowledged by developer. (Fri, 15 Jan 2016 10:21:02 GMT) Full text and rfc822 format available.

Message #10 received at 22329-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Peng Bai <baipeng <at> sina.com>
Cc: 22329-done <at> debbugs.gnu.org
Subject: Re: bug#22329: 24.3;
 Emacs Tramp feature suggestion: adding sg as a default connection
 method
Date: Fri, 15 Jan 2016 11:19:44 +0100
Version: 25.2

Peng Bai <baipeng <at> sina.com> writes:

> I suggest adding "sg" as a default connection method.

I've added this to Tramp. Will be available with Tramp 2.3.0 and Emacs 25.2.

> Best regards,
>
> Peng

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Feb 2016 12:24:03 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:09 GMT) Full text and rfc822 format available.

bug Marked as fixed in versions 26.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:09 GMT) Full text and rfc822 format available.

bug No longer marked as fixed in versions 25.2. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 04 Dec 2016 02:50:09 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 01 Jan 2017 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.