Mwnci getspnam() Function

Syntax

getspnam(string)

Description

The getspnam() function returns the shadow password entry for the given username as a hash.

If a username is not given or not found, an empty hash is returned.

Example

include("file")
println(getspnam())
println(getspnam("root"))
println(getspnam("foobar"))

{}
{"Flag": null, "User": "root", "LastChange": 19259, "MinAge": 0, "Warning": 7, "Inactive": null, "Passwd": "$y$j9T$enCAti10xvPSr.W2EfuJi0$NJYf7twmnYao3S91n1DJCpjPUDwT/uujG1gff86GNO9", "MaxAge": 99999, "Expire": null}
{}