diff options
| author | Michael Albinus | 2025-10-15 10:30:29 +0200 |
|---|---|---|
| committer | Michael Albinus | 2025-10-15 10:30:29 +0200 |
| commit | 53fa2b72183e110cc6da3ce172c48e40d3fea3c7 (patch) | |
| tree | 7168f7b85363aca07ef77b917a160d9f2637a2e4 /doc | |
| parent | 7845936cbbf8c56a4d57700fbd10246b7288aa01 (diff) | |
| download | emacs-53fa2b72183e110cc6da3ce172c48e40d3fea3c7.tar.gz emacs-53fa2b72183e110cc6da3ce172c48e40d3fea3c7.zip | |
Add support for su-rs and sudo-rs programs
* doc/misc/tramp.texi (Inline methods): Add "surs" and "sudors" methods.
* etc/NEWS: Add optional "surs" and "sudors" Tramp methods.
Presentational fixes and improvements.
* lisp/net/tramp-cmds.el (tramp-file-name-with-method): Add "surs"
and "sudors" to :type. Adapt :version.
* lisp/net/tramp-sh.el (tramp-enable-surs-method)
(tramp-enable-sudors-method): New defuns
(tramp-sh-handle-expand-file-name): Add "surs" and "sudors" in check.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
* lisp/comint.el (comint-password-prompt-regexp):
* test/lisp/comint-tests.el (comint-testsuite-password-strings):
Add su-rs and sudo-rs password prompts.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/tramp.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 5ce41091048..7b3a4808a45 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -852,12 +852,20 @@ as the @option{rsh} method. | |||
| 852 | @cindex method @option{su} | 852 | @cindex method @option{su} |
| 853 | @cindex @option{su} method | 853 | @cindex @option{su} method |
| 854 | @item @option{su} | 854 | @item @option{su} |
| 855 | @cindex method @option{surs} | ||
| 856 | @cindex @option{surs} method | ||
| 857 | @item @option{surs} | ||
| 855 | 858 | ||
| 856 | Instead of connecting to a remote host, @command{su} program allows | 859 | Instead of connecting to a remote host, @command{su} program allows |
| 857 | editing as another user. The host can be either @samp{localhost} or | 860 | editing as another user. The host can be either @samp{localhost} or |
| 858 | the host returned by the function @command{(system-name)}. | 861 | the host returned by the function @command{(system-name)}. |
| 859 | @xref{Multi-hops}, for an exception to this behavior. | 862 | @xref{Multi-hops}, for an exception to this behavior. |
| 860 | 863 | ||
| 864 | Method @option{surs} is the same like method @option{su}, but it uses | ||
| 865 | the modern @command{su-rs} program. It can be used instead wherever | ||
| 866 | method @option{su} is mentioned in this manual. @option{surs} is an | ||
| 867 | optional method, @pxref{Optional methods}. | ||
| 868 | |||
| 861 | @cindex method @option{androidsu} | 869 | @cindex method @option{androidsu} |
| 862 | @cindex @option{androidsu} method | 870 | @cindex @option{androidsu} method |
| 863 | @item @option{androidsu} | 871 | @item @option{androidsu} |
| @@ -876,6 +884,9 @@ default on @code{android} systems only. | |||
| 876 | @cindex method @option{sudo} | 884 | @cindex method @option{sudo} |
| 877 | @cindex @option{sudo} method | 885 | @cindex @option{sudo} method |
| 878 | @item @option{sudo} | 886 | @item @option{sudo} |
| 887 | @cindex method @option{sudors} | ||
| 888 | @cindex @option{sudors} method | ||
| 889 | @item @option{sudors} | ||
| 879 | 890 | ||
| 880 | Similar to @option{su} method, @option{sudo} uses @command{sudo}. | 891 | Similar to @option{su} method, @option{sudo} uses @command{sudo}. |
| 881 | @command{sudo} must have sufficient rights to start a shell. | 892 | @command{sudo} must have sufficient rights to start a shell. |
| @@ -884,6 +895,11 @@ For security reasons, a @option{sudo} connection is disabled after a | |||
| 884 | predefined timeout (5 minutes by default). This can be changed, | 895 | predefined timeout (5 minutes by default). This can be changed, |
| 885 | @pxref{Predefined connection information}. | 896 | @pxref{Predefined connection information}. |
| 886 | 897 | ||
| 898 | Method @option{sudors} is the same like method @option{sudo}, but it | ||
| 899 | uses the modern @command{sudo-rs} program. It can be used instead | ||
| 900 | wherever method @option{sudo} is mentioned in this manual. | ||
| 901 | @option{sudors} is an optional method, @pxref{Optional methods}. | ||
| 902 | |||
| 887 | @cindex method @option{doas} | 903 | @cindex method @option{doas} |
| 888 | @cindex @option{doas} method | 904 | @cindex @option{doas} method |
| 889 | @item @option{doas} | 905 | @item @option{doas} |