The <pwd.h> header provides a definition for struct passwd, which includes the following members:
char *pw_name user's login name uid_t pw_uid numerical user ID gid_t pw_gid numerical group ID char *pw_dir initial working di rectory char *pw_shell program to use as shell
The gid_t and uid_t types are defined as described in <sys/types.h>. See types.h(3HEAD).
See attributes(5) for descriptions of the following attributes: