HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)

l
lugadmin(1M) lugadmin(1M)
The above display format may change in future releases.
EXTERNAL INFLUENCES
Environment Variables
UG_DISPLAY_WIDTH
If it is set and long names are enabled, it overrides the width specified in the
lugname file for all sys-
tem and conforming applications that write formatted output.
RETURN VALUE
lugadmin exits with one of the following values:
0 Successful completion
-1 Failure
DIAGNOSTICS
Note: System is already enabled for long user/group name
You may have attempted to use the
-e option for a second time.
Error: The system is not enabled for long user/group name
You tried to use the -d option before using the -e option.
Error: Can’t create file /etc/defaults/lugname
Error: Can’t open file /etc/defaults/lugname
Error: The pwgrd daemon must be killed before enabling the system. The
daemon can be restarted once the system is enabled
system() failed
A call to the system() function failed.
Error: Long user/group name feature is not supported on trusted systems
WARNINGS
The lugname file is the switch that marks a long name system. If it is missing, short names are assumed
and the UG_DISPLAY_WIDTH
variable is ignored.
While many programs are unaffected by long names in a short name environment, some may behave abnor-
mally and some may abort.
It is recommended that you do not attempt to restore the short name environment once long names have
been enabled.
Do not use the system constant
LOGIN_NAME_MAX
with the getconf command or the sysconf()
function to test for name length; it is not changed when long names are enabled.
The value of the current status of the system (-l option) may change in future releases.
Once a system is enabled for long user and group names, it cannot be made a trusted system.
AUTHOR
lugadmin was developed by HP.
FILES
/etc/default/lugname If this file is present, the system is enabled for long user and group names;
otherwise, it is not. This file contains the default display width, as set with
the -d option.
SEE ALSO
getconf(1), sysconf(2).
HP-UX 11i Version 2: December 2007 Update 2 Hewlett-Packard Company 517