NAME
dsmemberutil —
various operations for the membership
APIs, including state dump, check memberships, UUIDs, etc.
SYNOPSIS
dsmemberutil |
[-v] [-h]
command [options] |
DESCRIPTION
dsmemberutil is a program that implements
the membership API calls in a command line utility.
FLAGS
A list of flags and their descriptions:
-h- Lists the options for calling
dsmemberutil -v- Causes
dsmemberutilto operate in verbose mode.
COMMANDS
The action of each command is described below:
- getuuid
-ugUGsSvalue - Takes any of the options and returns the associated UUID.
- getid
-UGsSXvalue - Takes any of the options and returns the associated UID or GID depending on option provided.
- getsid
-ugUGXvalue - Takes any of the options and returns the associated SID.
- checkmembership
-uUxsparam-gGXSparam - Returns if a user or group with the associated option is a member of the group.
- flushcache
- Flushes the current membership cache.
Legacy commands such as dumpstate and statistics are gone. See odutil(1) for show cache and statistics operations.
A list of options available. In some cases
-xX and -sS can be used
synonymously due to nature of the value.
-uuid- Using user with UID
-Uname- Using user with name
-ssid- Using user with SID
-xuuid- Using user with UUID
-ggid- Using group with GID
-Gname- Using group with name
-Ssid- Using group with SID
-Xuuid- Using group with UUID
EXAMPLES
- Get a user's uuid:
-
% dsmemberutil getuuid -u 501EEA4F2F6-B268-49E7-9C6F-E3C4A37DA4FD - Get a group's uuid
-
% dsmemberutil getuuid -g 0ABCDEFAB-CDEF-ABCD-EFAB-CDEF00000000 - Get a user's or group's id from a uuid
-
% dsmemberutil getid -X ABCDEFAB-CDEF-ABCD-EFAB-CDEF0000000Cgid: 12 - Check a user's membership in a group (using UID and GID)
-
% dsmemberutil checkmembership -u 501 -g 0user is not a member of the group - Check a user's membership in a group (using names)
-
% dsmemberutil checkmembership -U root -G wheeluser is a member of the group