Function: tramp-enable-ksu-method

tramp-enable-ksu-method is an autoloaded and byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-enable-ksu-method)

Documentation

Enable "ksu" method.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
;;;###tramp-autoload
(defun tramp-enable-ksu-method ()
  "Enable \"ksu\" method."
  (add-to-list 'tramp-methods
               `("ksu"
                 (tramp-login-program        "ksu")
                 (tramp-login-args           (("%u") ("-q")))
                 (tramp-remote-shell         ,tramp-default-remote-shell)
                 (tramp-remote-shell-login   ("-l"))
                 (tramp-remote-shell-args    ("-c"))
                 (tramp-connection-timeout   10)))

  (add-to-list 'tramp-default-user-alist
	       `(,(rx bos "ksu" eos) nil ,tramp-root-id-string))

  (tramp-set-completion-function "ksu" tramp-completion-function-alist-su))