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.
An empty hash is returned if there is no data

Example

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

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