Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

pwd(3HEAD)

Name

pwd.h, pwd - password structure

Synopsis

#include <pwd.h>

Description

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).

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See Also

getpwnam(3C), types.h(3HEAD), attributes(7), standards(7)