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 30.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 "30.1"
  :type '(choice (const "su")
		 (const "sudo")
		 (const "doas")
		 (const "run0")
		 (const "ksu")))