Method System.getpwent()
- Method
getpwent
array(int|string) getpwent()- Description
When first called, the getpwent function opens the passwd source and returns the first record using the systemfunction getpwent(3). For each following call, it returns the next record until EOF.
- 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
0 if EOF.
- See also