Variable: tramp-file-name-with-method
tramp-file-name-with-method is a customizable variable defined in
tramp-cmds.el.gz.
Value
"sudo"
Documentation
Which method to be used in tramp-file-name-with-sudo.
This variable was added, or its default value changed, in Emacs 31.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-cmds.el.gz
;;; Run as sudo
(defcustom tramp-file-name-with-method "sudo"
"Which method to be used in `tramp-file-name-with-sudo'."
:group 'tramp
:version "31.1"
;; It should be a choice of constant strings. See
;; `with-tramp-file-name-with-method'.
:type '(choice (const "su") (const "surs")
(const "sudo") (const "sudors")
(const "doas")
(const "run0")
(const "ksu"))
:initialize #'custom-initialize-default
:set #'tramp-set-file-name-with-method
:link '(tramp-info-link :tag "Tramp manual" tramp-file-name-with-method))