Method getpwnam()
- Method
getpwnam
array(int|string) getpwnam(stringstr)- Description
Get the user entry for login
strusing the systemfunction getpwnam(3).- Parameter
str The login name of the user whos userrecord is requested.
- Returns
An array with the information about the user
Array string0Users username (loginname)
string1User password (encrypted)
int2Users ID
int3Users primary group ID
string4Users real name an possibly some other info
string5Users home directory
string6Users shell
- See also
getpwuid()
getpwent()