52. .etc.passwd

SCR Agent for reading /etc/passwd

52.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)

52.2. Usage

Example 28. 

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",
  ... 
])