COHERENT manpages
This page displays the COHERENT manpage for shadow.h [Definitions used with shadow passwords].
List of available manpages
Index
shadow.h -- Header File Definitions used with shadow passwords #include <shadow.h> The header file <shadow.h> declares and defines the functions, macros, structures, and constants used to manipulate shadow passwords. <shadow.h> holds defines the structure spwd, which describes the records that are stored in file /etc/shadow. <shadow.h> gives two definitions spwd: one implements the structure used by UNIX System V, release 4; and the other implements the structure used by UNIX System V, release 3. The following gives the form of spwd that is used by some releases of UNIX System V, release 4: struct spwd { char *sp_namp; /* User Name */ char *sp_pwdp; /* Encrypted password */ long sp_lstchg; /* Last changed date */ long sp_min; long sp_max; long sp_warn; long sp_inact; long sp_expire; /* Acct expiration date. */ unsigned long sp_flag; }; The following gives the version of spwd used by UNIX System V, release 3: struct spwd { char *sp_name; /* User name */ char *sp_passwd; /* Encrypted password - non-POSIX */ int sp_uid; /* User id */ int sp_gid; /* Group id */ int sp_quota; /* File space quota - non-POSIX*/ char *sp_comment; /* Comments - non-POSIX */ char *sp_gecos; /* Gecos box number - non-POSIX */ char *sp_dir; /* Working directory */ char *sp_shell; /* Shell */ }; By default, COHERENT uses the System V, release 3, version of spwd. For information on how to select a given version of spwd, see the discussion of compilation environments in the Lexicon article header files. See Also header files, endspent(), getspent(), getspnam(), libc, setspent(), shadow