Name

getpwnam

Synopsis

$entry = getpwnam($username)

Returns an array of information about the user with the username username. The fields of the array are as follows:

  1. Username

  2. Password

  3. UID

  4. GID

  5. GECOS (Full name and other optional information)

  6. Home directory

  7. Shell

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.