Mwnci getpwnam() Function

Syntax

getpwnam(string)

Description

The getpwnam() function returns a hash of the password entry for the given user.

Example

include("pwd")
println(getpwnam("root"))

{"Home": "/root", "Shell": "/bin/bash", "Gecos": ["root"], "User": "root", "Uid": 0, "Gid": 0}