]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor cleanup for Tramp "doas".
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 5 Feb 2016 17:57:35 +0000 (18:57 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 5 Feb 2016 17:57:35 +0000 (18:57 +0100)
* 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'.

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

index 16ff76b887d6a89dcb537b960f79da36ef574b93..294a3a9ecdf33d43518b2409ab444e0de615e8a1 100644 (file)
@@ -590,6 +590,12 @@ the host returned by the function @command{(system-name)}.  See
 Similar to @option{su} method, @option{sudo} uses @command{sudo}.
 @command{sudo} must have sufficient rights to start a shell.
 
+@item @option{doas}
+@cindex method doas
+@cindex doas method
+
+This method is used on OpenBSD like the @command{sudo} command.
+
 @item @option{sg}
 @cindex method sg
 @cindex sg method
index 3b520ec50b121e26dee57156b1ea1e7558945a14..95ade416d3989456d86fa5cd31151a893b7fee48 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -67,9 +67,13 @@ for the ChangeLog file, if none already exists.  Customize
 
 ** Tramp
 
++++
 *** New connection method "sg", which allows to edit files under
 different group ID.
 
++++
+*** New connection method "doas" for OpenBSD hosts.
+
 \f
 * New Modes and Packages in Emacs 25.2
 
index 5771269417e0cc4775c2801406e639abf8bfded8..c2ab67b6f4f17af83cdc47da467039fdffb0cbeb 100644 (file)
@@ -312,6 +312,7 @@ The string is used in `tramp-methods'.")
     (tramp-login-program        "doas")
     (tramp-login-args           (("-u" "%u") ("-s")))
     (tramp-remote-shell         "/bin/sh")
+    (tramp-remote-shell-args    ("-c"))
     (tramp-connection-timeout   10)))
 ;;;###tramp-autoload
 (add-to-list 'tramp-methods
@@ -415,7 +416,7 @@ The string is used in `tramp-methods'.")
 
 ;;;###tramp-autoload
 (add-to-list 'tramp-default-user-alist
-            `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu" "doas")) "\\'")
+            `(,(concat "\\`" (regexp-opt '("su" "sudo" "doas" "ksu")) "\\'")
               nil "root"))
 ;; Do not add "ssh" based methods, otherwise ~/.ssh/config would be ignored.
 ;; Do not add "plink" based methods, they ask interactively for the user.