Function: tramp-enable-surs-method

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

Signature

(tramp-enable-surs-method)

Documentation

Enable "surs" method.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
;;;###tramp-autoload
(defun tramp-enable-surs-method ()
  "Enable \"surs\" method."
  (add-to-list 'tramp-methods
               `("surs"
                 (tramp-login-program        "su-rs")
                 (tramp-login-args           (("-") ("%u")))
                 (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 "surs" eos) nil ,tramp-root-id-string))

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