diff options
| -rw-r--r-- | doc/misc/tramp.texi | 6 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 3 |
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 | |||
| 590 | Similar to @option{su} method, @option{sudo} uses @command{sudo}. | 590 | Similar 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 | |||
| 597 | This 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 |
| @@ -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 |
| 71 | different group ID. | 72 | different 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. |