Function: tramp-enable-sudors-method

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

Signature

(tramp-enable-sudors-method)

Documentation

Enable "sudors" method.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
;;;###tramp-autoload
(defun tramp-enable-sudors-method ()
  "Enable \"sudors\" method."
  (add-to-list 'tramp-methods
               `("sudors"
                 (tramp-login-program        "sudo-rs")
                 (tramp-login-args           (("-u" "%u") ("-s") ("%l")))
                 (tramp-remote-shell         ,tramp-default-remote-shell)
                 (tramp-remote-shell-login   ("-l"))
                 (tramp-remote-shell-args    ("-c"))
                 (tramp-connection-timeout   10)
                 (tramp-session-timeout      300)
		 (tramp-password-previous-hop t)))

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

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