Adapt Tramp's "run0" method
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 10 Jul 2024 09:58:22 +0000 (11:58 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 10 Jul 2024 09:58:22 +0000 (11:58 +0200)
* doc/misc/tramp.texi (Inline methods):
* etc/NEWS: Adapt "run0" entry.

* lisp/net/tramp-sh.el (tramp-enable-run0-method): Adapt "run0"
arguments.

doc/misc/tramp.texi
etc/NEWS
lisp/net/tramp-sh.el

index ef74f1e3f13e2e7b708e4461b3a567bd3364a3c5..e1130917f0c48f54805107ee45cf8073e1b8d336 100644 (file)
@@ -892,9 +892,9 @@ a predefined timeout.
 @cindex method @option{run0}
 @cindex @option{run0} method
 
-This method is used on @code{systemd}-based hosts.  Internally, it
-uses the @code{systemd-run} command.  A @option{run0} connection is
-disabled after a predefined timeout as well.
+@c This requires systemd 256.  Check with 'systemd-run --version'.
+This method is used on @code{systemd}-based hosts.  A @option{run0}
+connection is disabled after a predefined timeout as well.
 
 This is an optional method, @pxref{Optional methods}.
 
index 31d69ddababa917236cd5ee8584beb85e4d72e55..57b17cc858e00a2c2d71927d6ad1404fac26ecfa 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1329,8 +1329,8 @@ Android.
 
 +++
 *** New optional connection method "run0".
-This connection method is similar to "sudo", but it uses the
-'systemd-run' program internally.
+This connection method is similar to "sudo", but it uses the 'systemd'
+framework internally.
 
 +++
 *** New connection methods "dockercp" and "podmancp".
index 4a0c09ff722815bf9c3ac8e707779f5e268c3a24..df8ca151718a305e5ee7bfa86f104acf00beecac 100644 (file)
@@ -509,8 +509,9 @@ The string is used in `tramp-methods'.")
   "Enable \"run0\" method."
  (add-to-list 'tramp-methods
               `("run0"
-                (tramp-login-program        "systemd-run")
-                (tramp-login-args           (("--uid" "%u") ("-t") ("%l")))
+                (tramp-login-program        "run0")
+                (tramp-login-args           (("--user" "%u")
+                                            ("--background" "''") ("%l")))
                 (tramp-remote-shell         ,tramp-default-remote-shell)
                 (tramp-remote-shell-args    ("-c"))
                 (tramp-connection-timeout   10)