Reference: getpwnam
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:35:54Z

#

| Chapter 5 Function Reference |

## getpwnam

    getpwnam name

Retrieves the passwd file entry of a user, name. The return value in list context is:

>     ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell)

If you want to do this repeatedly, consider caching the data in a hash using `getpwent`.

In scalar context, `getpwnam` returns only the numeric user ID.

Reference: getpwent |  | Reference: getpwuid