LDAP-UX Client Services B.05.00 Administrator's Guide
Command arguments applicable to -t group
The following are the command arguments and options used in the above examples of the
ldapugadd -t group commands:
-M <member>
Defines initial group membership by adding the specified user accounts
as members.
-g <gid_nubmer>
Specifies the group id number for the new group.
<group_name>
Required argument. Specifies the POSIX style group name for the new
group entry.
5.5.4.4 Modifying defaults in /etc/opt/ldapux/ldapug.conf
You can use the ldapugadd -D command to change default values of the uidNumber_range,
gidNumber_range, user_gidNumber, default_homeDirectory and
default_loginShell parameters in the /etc/opt/ldapux/ldapug.conf file.
The following commands set new default minimum and maximum ranges of UID numbers in
the local configuration file, /etc/opt/ldapux/ldapug.conf. The ldapugadd tool randomly
selects a new ID from this range if you do not specify an account number.
cd /opt/ldapux/bin
./ldapugadd -D -t passwd -u 1000:5000
The following command sets new default minimum and maximum ranges of GID numbers in
the local configuration file, /etc/opt/ldapux/ldapug.conf. The ldapugadd tool randomly
selects a new ID from this range if you do not specify a group number.
./ldapugadd -D -t group -g 200:2500
The following command sets new default group ID number in the local configuration file, /etc/
opt/ldapux/ldapug.conf. The ldapugadd tool uses this new value when creating new user
entries in an LDAP directory server.
./ldapugadd -D -t passwd -g 5000
The following command sets new default login shell in the local configuration file, /etc/opt/
ldapux/ldapug.conf. The ldapugadd tool uses this new login shell when creating new user
entries in an LDAP directory server.
./ldapugadd -D -t passwd -s /net/bin/sh
The following command sets new default parent home directory in the local configuration file,
/etc/opt/ldapux/ldapug.conf. The ldapugadd tool uses this new home directory when
creating new user entries in an LDAP directory server.
./ldapugadd -D -t passwd -d /net/home
Command arguments applicable to -D
The following describes arguments used in the above examples of the ldapugadd -D commands:
-D Uses this option to change local host defaults in the /etc/
opt/ldapux/ldapug.conf file which are used by
ldapugadd when creating new user or group entries in an
LDAP directory server.
-u <min_uid>:<max_uid>
Sets new default minimum and maximum ranges that
ldapugadd uses when provisioning an UID number for new
user entries.
-g <default_gid>
Specifies the default group ID number used when creating
new user entries.
-g <min_gid>:<max_gid>
Sets new default minimum and maximum ranges that
ldapugadd uses when provisioning a GID number for new
group entries.
5.5 Managing users and groups 167