LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS

Command arguments
The following describes the command arguments and options used in the preceding command
example:
-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.
7.7.1.3.3 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.
Modifying the minimum and maximum UID range
The following command sets new default minimum (1000) and maximum (5000) ranges for UID
numbers. 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
Modifying the minimum and maximum GID range
The following command sets new default minimum (200) and maximum (2500) ranges for GID
numbers. 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
Modifying the default group ID
The following command sets the default group ID to 5000. The ldapugadd tool uses this new
value when creating new user entries in an LDAP directory server.
./ldapugadd -D -t passwd -g 5000
Modifying the default login shell
The following command sets the default login shell to /net/bin/sh. The ldapugadd tool uses
this new login shell when creating new user entries in a directory server.
./ldapugadd -D -t passwd -s /net/bin/sh
Modifying the default parent home directory
The following command sets the default parent home directory to /net/home. The ldapugadd
tool uses this new home directory when creating new user entries in the directory server.
./ldapugadd -D -t passwd -d /net/home
Command arguments
The following describes arguments used in the preceding examples:
-D Uses this option to change local host defaults in the /etc/
opt/ldapux/ldapug.conf file that 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 a UID number for new
user entries.
226 Administering LDAP-UX Client Services