chickadee » posix » user-information

user-information USER #!optional AS-VECTORprocedure

If USER specifes a valid username (as a string) or user ID, then the user database is consulted and a list of 7 values are returned: the user-name, the encrypted password, the user ID, the group ID, a user-specific string, the home directory and the default shell. When AS-VECTOR is #t a vector of 7 elements is returned instead of a list. If no user with this name or id then #f is returned.

Note: on Android systems, the user-specific string is always "", since pw_gecos is not available in the C passwd struct on that platform.