aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2016-02-05 18:57:35 +0100
committerMichael Albinus2016-02-05 18:57:35 +0100
commit05570f0002a6bcecf2b72ea3f22d6653e00a45a6 (patch)
tree65d046c0078de592c572fc980c599165cddcaf3a
parentd66e8f72483ef8c6d7aa1afd391075235b4f23d2 (diff)
downloademacs-05570f0002a6bcecf2b72ea3f22d6653e00a45a6.tar.gz
emacs-05570f0002a6bcecf2b72ea3f22d6653e00a45a6.zip
Minor cleanup for Tramp "doas".
* doc/misc/tramp.texi (Inline methods): Add "doas" method. * etc/NEWS: Add Tramp connection method "doas". * lisp/net/tramp-sh.el (tramp-methods) <doas>: Add `tramp-remote-shell-args'.
-rw-r--r--doc/misc/tramp.texi6
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/net/tramp-sh.el3
3 files changed, 12 insertions, 1 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 16ff76b887d..294a3a9ecdf 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -590,6 +590,12 @@ the host returned by the function @command{(system-name)}. See
590Similar to @option{su} method, @option{sudo} uses @command{sudo}. 590Similar to @option{su} method, @option{sudo} uses @command{sudo}.
591@command{sudo} must have sufficient rights to start a shell. 591@command{sudo} must have sufficient rights to start a shell.
592 592
593@item @option{doas}
594@cindex method doas
595@cindex doas method
596
597This method is used on OpenBSD like the @command{sudo} command.
598
593@item @option{sg} 599@item @option{sg}
594@cindex method sg 600@cindex method sg
595@cindex sg method 601@cindex sg method
diff --git a/etc/NEWS b/etc/NEWS
index 3b520ec50b1..95ade416d39 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -67,9 +67,13 @@ for the ChangeLog file, if none already exists. Customize
67 67
68** Tramp 68** Tramp
69 69
70+++
70*** New connection method "sg", which allows to edit files under 71*** New connection method "sg", which allows to edit files under
71different group ID. 72different group ID.
72 73
74+++
75*** New connection method "doas" for OpenBSD hosts.
76
73 77
74* New Modes and Packages in Emacs 25.2 78* New Modes and Packages in Emacs 25.2
75 79
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 5771269417e..c2ab67b6f4f 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -312,6 +312,7 @@ The string is used in `tramp-methods'.")
312 (tramp-login-program "doas") 312 (tramp-login-program "doas")
313 (tramp-login-args (("-u" "%u") ("-s"))) 313 (tramp-login-args (("-u" "%u") ("-s")))
314 (tramp-remote-shell "/bin/sh") 314 (tramp-remote-shell "/bin/sh")
315 (tramp-remote-shell-args ("-c"))
315 (tramp-connection-timeout 10))) 316 (tramp-connection-timeout 10)))
316;;;###tramp-autoload 317;;;###tramp-autoload
317(add-to-list 'tramp-methods 318(add-to-list 'tramp-methods
@@ -415,7 +416,7 @@ The string is used in `tramp-methods'.")
415 416
416;;;###tramp-autoload 417;;;###tramp-autoload
417(add-to-list 'tramp-default-user-alist 418(add-to-list 'tramp-default-user-alist
418 `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu" "doas")) "\\'") 419 `(,(concat "\\`" (regexp-opt '("su" "sudo" "doas" "ksu")) "\\'")
419 nil "root")) 420 nil "root"))
420;; Do not add "ssh" based methods, otherwise ~/.ssh/config would be ignored. 421;; Do not add "ssh" based methods, otherwise ~/.ssh/config would be ignored.
421;; Do not add "plink" based methods, they ask interactively for the user. 422;; Do not add "plink" based methods, they ask interactively for the user.