Flowdock
method

getpwnam

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Etc
getpwnam(p1) public

Returns the /etc/passwd information for the user with specified login name.

The information is returned as a Passwd struct.

See the unix manpage for getpwnam(3) for more detail.

Example:

Etc.getpwnam('root')
#=> #<struct Etc::Passwd name="root", passwd="x", uid=0, gid=0, gecos="root",dir="/root", shell="/bin/bash">
Show source
Register or log in to add new notes.