diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2022-02-19 18:38:12 +0100 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2022-02-19 18:38:12 +0100 |
commit | 7e4ef09aa0d9587677d44284af72ceb3f44061b7 (patch) | |
tree | 1f1e35cbe3720ac6f0db79abde9078e6a240f2a1 /etc | |
parent | a72e0e50f0afbb8b37b9ebd8e1fa83ce3eb9f643 (diff) | |
download | emacs-7e4ef09aa0d9587677d44284af72ceb3f44061b7.tar.gz |
Adapt Tramp password prompts for sudo-like methods
* doc/misc/tramp.texi (Password handling): Explain entries for
doas, sudo and sudoedit.
* etc/NEWS (Tramp): Document changed password prompts.
* lisp/net/tramp-sh.el (tramp-methods) <sudo, doas>:
Add `tramp-password-previous-hop'.
(tramp-maybe-open-connection): Modify `previous-hop' if needed.
* lisp/net/tramp-sudoedit.el (tramp-methods) <sudoedit>:
Add `tramp-password-previous-hop'.
(tramp-sudoedit-null-hop): New defconst.
(tramp-sudoedit-send-command): Use it.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-null-hop): New defconst.
(tramp-get-remote-null-device): Use it.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -73,7 +73,7 @@ and Broadway. We do not recommend that you use this configuration, unless you are running a window system that's supported by GDK other than X. Running this configuration on X is known to have problems, such as undesirable frame positioning and various issues with keyboard -input of sequences such as "C-;" and "C-S-u". +input of sequences such as 'C-;' and 'C-S-u'. --- ** The docstrings of preloaded files are not in "etc/DOC" any more. @@ -523,7 +523,7 @@ This uses the Tai Tham script, whose support has been enhanced. --- ** 'savehist.el' can now truncate variables that are too long. An element of 'savehist-additional-variables' can now be of the form -(VARIABLE . MAX-ELTS), which means to truncate the VARIABLE's value to +'(VARIABLE . MAX-ELTS)', which means to truncate the VARIABLE's value to at most MAX-ELTS elements (if the value is a list) before saving the value. @@ -962,6 +962,13 @@ When set to non-nil, Tramp does not copy files between two remote hosts via a local copy in its temporary directory, but let the 'scp' command do this job. ++++ +*** Proper password prompts for methods "doas", "sudo" and "sudoedit". +The password prompts for these methods reflect now the credentials of +the user requesting such a connection, and not of the user who is the +target. This has always been needed, just the password prompt and the +related 'auth-sources' entry were wrong. + ** Browse URL --- |