Mwnci groups() Function

Syntax

groups([string])

Description

The groups() function returns a hash of group names and associated Gid’s that a given user belongs to
false is also returned if the path doesn’t exist

Example

include("grp")
println(groups("root"))
println(groups())

{"root": 0}
{"plugdev": 46, "adm": 4, "input": 102, "users": 100}