struct passwd

data structure containing user account information 

Data Structure


SYNOPSIS

#include <pwd.h>

struct passwd {
	char *pw_name;
	char *pw_passwd;
	uid_t pw_uid;
	gid_t pw_gid;
	time_t pw_change;
	char *pw_class;
	char *pw_gecos;
	char *pw_dir;
	char *pw_shell;
	time_t pw_expire;
}; 


DESCRIPTION

The passwd structure is returned by the getpwnam() getpwnam_r(), getpwuid() and getpwuid_r() functions. It provides information about a user account. The structure has the following fields:

pw_name  

User's login name.

pw_passwd  

Encrypted password. This field is not supported.

pw_uid  

User ID.

pw_gid  

Group ID.

pw_change  

Password change time. This field is not supported.

pw_class  

User access class. This field is not supported.

pw_gecos  

User's full name.

pw_dir  

User's login directory.

pw_shell  

User's login shell.

pw_expire  

Password expiration time.


CONFORMANCE

UNIX 98 with exceptions.


PORTING ISSUES

On 7/2008R2/8/2012/10/2016 the structure is filled with information from the SAM database. Refer to Users and Groups in the Windows Concepts chapter of the PTC MKS Toolkit UNIX to Windows Porting Guide.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
getgrgid(), getgrgid_r(), getgrnam(), getgrnam_r(), getpwnam(), getpwnam_r(), getpwuid(), getpwuid_r()

Miscellaneous:
struct group


PTC MKS Toolkit 10.1 patch 1 Documentation Build 2.