array(int|string) System.getpwent()
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.
Call endpwent when done using getpwent .
An array with the information about the user
Users username (loginname)
User password (encrypted)
Users ID
Users primary group ID
Users real name an possibly some other info
Users home directory
Users shell
0 if EOF.
get_all_users() getpwnam() getpwent() setpwent() endpwent()