Function: tramp-parse-passwd

tramp-parse-passwd is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-parse-passwd FILENAME)

Documentation

Return a list of (user host) tuples allowed to access.

Host is always "localhost".

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-parse-passwd (filename)
  "Return a list of (user host) tuples allowed to access.
Host is always \"localhost\"."
  (with-tramp-connection-property nil "parse-passwd"
    (if (executable-find "getent")
	(with-temp-buffer
	  (when (zerop (tramp-call-process nil "getent" nil t nil "passwd"))
	    (goto-char (point-min))
	    (cl-loop while (not (eobp)) collect
		     (tramp-parse-etc-group-group))))
      (tramp-parse-file filename #'tramp-parse-passwd-group))))