[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BoKS sx on remote host

From: Patrick Schoenmakers
Subject: Re: BoKS sx on remote host
Date: Mon, 18 Jan 2016 08:21:14 +0100 (CET)

Happy to report it works like a charm! Added it to my .emacs.

On January 15, 2016 at 1:53 PM Michael Albinus <address@hidden> wrote:

Patrick Schoenmakers <address@hidden> writes:

Hi Patrick,

> I want to sudo access a remote host which has BoKS security
> implemented instead of standard sudo. While on a commandline this
> basically works the same as sudo, I cannot use the multi-hop sudo
> trick for dired. This means I cannot browse files or edit under the
> sudo-ed account anymore which severely hampers the usability in this
> case as I'm back to remote vi which is a pain in emacs. So I'd have to
> go back to putty.
> Is there a way to configure multi-hop to use the BoKS method "sx su -
> <user>" instead of sudo?

You could define your own method, derived from the "su" declaration:

(add-to-list 'tramp-methods
(tramp-login-program "sx")
(tramp-login-args (("su") ("-") ("%u")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-c"))
(tramp-connection-timeout 10)))

Access the remote host then as "/ssh:address@hidden|sx:address@hidden:"

This is completely untested, ping me if it doesn't work.

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]