Values Returned by getpwnam : getpwnam « System Functions « Perl






Values Returned by getpwnam

      

($name, $passwd, $uid,$gid, $quota, $comment,$gcos, $dir, $shell) = getpwnam($username);

            

Value      Contains
$name      User name.
$passwd      Encrypted password.
$uid      User ID.
$gid      Group ID.
$quota      Allowed disk quota, often used for other purposes. 
$comment      Generally unused.
$gcos      Often contains full user name.
$dir      User's home directory.
$shell      Program that gets launched for the user as the login shell. 

   
    
    
    
    
    
  








Related examples in the same category

1.Test a UNIX password
2.To display all the /etc/passwd fields for users passed on the command line
3.The getgrnam function retrieves the group file entry corresponding to a particular group name.