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
- 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 Windows NT/2000/XP/2003/Vista the structure is filled with information from the SAM database. Refer to Users and Groups in the Windows Concepts chapter of the MKS Toolkit UNIX to Windows Porting Guide.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
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
MKS Toolkit 9.2 Documentation Build 16.