66. .etc.passwd

SCR Agent for reading /etc/passwd

66.1. Description

Returns a list of maps. Each map (list-entry) corresponds with one user. Keys for the maps are: "username", "password", "uid", "gid", "fullname", "home" and "shell".

Access type: read-only

File Name: /usr/share/YaST2/scrconf/etc_passwd.scr

See: anyagent libscr man passwd(5)

66.2. Usage

Example 30. 

  Read(.etc.passwd)
  ([$["fullname":"root", "gid":0, "home":"/root", "password":"x",
      "shell":"/bin/bash", "uid":0, "username":"root"], 
    $["fullname":"bin", "gid":1, "home":"/bin", "password":"x",
      "shell":"/bin/bash", "uid":1, "username":"bin"],
    $["fullname":"daemon", "gid":2,"home":"/sbin", "password":"x",
    ... 
  ])