System Administration Guide: Basic Administration

Adding a Group and User With the smgroup and smuser Commands

The following example shows how to use the smgroup and smuser commands to add the group gelfs and the user camille to the NIS domain on the host starlite.

# /usr/sadm/bin/smgroup add -D nis:/ -- -g 103 -n gelfs
# /usr/sadm/bin/smuser add -D nis:/starlite/ -- -u 1004 
-n camille -c "Camille G." -d /export/home/camille -s /bin/csh -g gelfs

For more information, see the smgroup(1M) and smuser(1M) man pages.