lugadmin.1m (2010 09)

l
lugadmin(1M) lugadmin(1M)
NAME
lugadmin - long user and group name enablement and display
SYNOPSIS
lugadmin [-e][-d
num][-l]
DESCRIPTION
The
lugadmin command enables the support of long user and group names on the system, sets the
default display width for long user and group names, and displays the current status of the system.
If no options are specified, the
-l option is assumed.
Options
The following options are supported:
-e Enable long user and group name support on the system. See the Enabling Long User
and Group Names subsection below for details. This option requires superuser
privileges.
-d num Set num as the default display width for long user and group names. num can be in the
range
0 to 255.
The
-d option can be only be specified with the -e option or when long names have been
previously enabled.
See the Setting the User and Group Name Display Width subsection below for details.
This option requires superuser privileges.
-l Display the current status of the system. The command displays one of:
64 The system is restricted to short (8-byte) user and group names.
256 The system is enabled for long (255-byte) user and group name support. A name
string can be up to 255 bytes plus a trailing NULL byte.
Enabling Long User and Group Names
To enable long user and group names,
1. Stop the pwgrd daemon.
# /sbin/init.d/pwgr stop
2. Run the lugadmin command with the -e option.
# lugadmin -e [-d num]
3. The command requests confirmation before enabling the system.
Long user/group name once enabled cannot be disabled in future.
Do you want to continue [yY]:
If you respond with y or Y, the command proceeds; otherwise, it aborts.
4. The command creates the
/etc/default/lugname file.
5. If the
-d option is not specified, num defaults to 0. The specified or default value of num is
written in lugname.
Setting the User and Group Name Display Width
The long user and group name default display width is set when
lugadmin is executed with the -e
option. It can be changed at any time by executing lugadmin with the -d option.
If
-d is not specified with the -e option, the value of num defaults to 0.
Application Usage
To Determine the Long Name Status of a System
Use one of these:
sysconf(_SC_LOGIN_NAME_MAX) in program code; see sysconf (2) and the WARNINGS section.
ug_display_width() in program code; see ug_display_width(3C).
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)