home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

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.











??????????????@Mail.ru