def _parse_passwd_line(line, entries):
    """
    Parses a line from /etc/passwd and returns the information as a
    dictionary.
    """
    result = dict(zip(entries, line.strip().split(':')))
    result['full_name'] = result['gecos'].split(',')[0]
    return result
