LDAP-UX Client Services B.04.15 Administrator's Guide

-g <group/gid>
Optional. Specifies the user's primary login group name or ID
number. After creating the user entry, ldapugadd attempts to
add the user as a member of the specified group using the
ldapugmod -t group command.
To support numeric group names, ldapugadd always attempts
to resolve the specified argument as a group name (even if it is
a numeric string). If the specified argument is not found as a
group name, ldapugadd checks to see if the argument is a
numeric string and if so, uses that as the group ID number. If
that numeric group cannot be found in any active name service
repository, ldapugadd issues an ERROR message. If the specific
argument is not numeric and can not be found in an active name
service repository, ldapugadd exits with an ERROR and does
not create the new entry.
If you do not specify this argument, the user becomes a member
of the default login group as specified by the ldapugadd -D
-g <default_gid> command.
-G <group/gid>[,...]
Optional. Specifies the user's alternate group memberships.
<group/gid> is the POSIX group name or the group ID number.
The specified <group> name must exist in the directory server
(not in the /etc/group file). If the specified group name is
invalid or does not exist in the directory server, ldapugadd
issues a warning message for each invalid group. To support
numeric group names, ldapugadd always attempts to resolve
the specified argument as a group name (even if it is a numeric
string). If the specified argument is not found as a group name,
ldapugadd checks to see if the argument is a numeric string
and if so, use that as the group ID number. Only if the user entry
is successfully created , ldapuguadd will call the ldapugmod
-t group for each <group> specified to add the user to listed
groups. If you specify more than one group, you must separate
each group by a comma. No white space is allowed between or
within group names. If ldapugadd fails to add the user as a
member of a particular group, ldapugadd issues a warning
message and continues to add the user to the remaining groups
specified.
If you do not specify this argument, ldapugadd does not add
the user to alternate groups.
-s <login_shell>
Optional. Specifies the full path name to the executable that is
used to handle login sessions for this user.
If this argument is not specified, the default, as configured by
the ldapugadd -D -s <default_shell> command, is used.
-d <home_directory>
Optional. Specifies the full path name (including the user name)
of the users home directory.
If you do not specify this argument, the combination of the
default base directory as configured by ldapugadd -D -d
<home_directory> and the users account name is used. If
you want to create the home directory on this system, you must
specify the -m option.
162 Command and Tool Reference