Unix groups


The unix.groups vocabulary contains words that return information about Unix groups.

Listing all group structures:
all-groups ( -- seq )


Listing all group names:
all-group-names ( -- seq )


Checking if a group exists:
group-exists? ( name/id -- ? )


Querying/setting the current real group:
real-group-name ( -- string )

real-group-id ( -- id )

set-real-group ( obj -- )


Querying/setting the current effective group:
effective-group-name ( -- string )

effective-group-id ( -- string )

set-effective-group ( obj -- )


Getting a group id from a group name or id:
?group-id ( string -- id )


Combinators to change groups:
with-real-group ( string/id/f quot -- )

with-effective-group ( string/id/f quot -- )