HP-UX Reference (11i v1 00/12) - 4 File Formats (vol 8)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man4/!!!intro.4
________________________________________________________________
___ ___
p
passwd(4) passwd(4)
The following fields have size limitations as noted:
Login name field can be no longer than 8 characters;
Initial working directory field can be no longer than 63 characters;
Program field can be no longer than 44 characters.
Results are unpredictable if these fields are longer than the limits specified above.
The following fields have numerical limitationsas noted:
The user ID is an integer value between 0 and UID_MAX-1 inclusive. As a special case -2 maybe
present.
The group ID is an integer value between 0 and UID_MAX-1 inclusive. As a special case -2 maybe
present.
If either of these values are out of range, the getpwent(3C) functions reset the ID value to
(UID_MAX).
EXAMPLES
NIS Example
Here is a sample /etc/passwd file:
root:3Km/o4Cyq84Xc:0:10:System Administrator:/:/sbin/sh
joe:r4hRJr4GJ4CqE:100:50:Joe User,Post 4A,12345:/home/joe:/usr/bin/ksh
+john:
-bob:
+@documentation:no-login:
-@marketing:
+:::Guest
In this example, there are specific entries for users root and joe, in case the Network Information Sys-
tem are out of order.
User
john’s password entry in the Network Information System is incorporated without
change.
Any subsequent entries for user bob are ignored.
The password field for anyone in the netgroup documentation
is disabled.
Users in netgroup
marketing are not returned by getpwent(3C) and thus are not allowed to
log in.
Anyone else can log in with their usual password, shell, and home directory, but with a gecos
field of Guest.
FILES
/tcb/files/auth/*/* Protected password database used when system is converted to trusted sys-
tem.
/etc/passwd Standard password file used by HP-UX.
SEE ALSO
chfn(1), chsh(1), finger(1), login(1), passwd(1), pwck(1), useradd(1M), a64l(3C), crypt(3C), getpass(3C),
getpwent(3C), getprpwent(3), authcap(4), limits(5).
STANDARDS CONFORMANCE
passwd: SVID2, SVID3, XPG2
HP-UX Release 11i: December 2000 3 Section 4203
___
___