USER-INFO.ECLASS

Section: eclass-manpages (5)
Updated: Nov 2024
Index Return to Main Contents

NAME

user-info.eclass - Read-only access to user and group information

SUPPORTED EAPIS

7 8

FUNCTIONS

egetent <database> <key>
Small wrapper for getent (Linux), nidump (< Mac OS X 10.5), dscl (Mac OS X 10.5), and pw (FreeBSD) used in enewuser()/enewgroup().

Supported databases: group passwd Warning: This function can be used only in pkg_* phases when ROOT is valid.

egetusername <uid>
Gets the username for given UID.
egetgroupname <gid>
Gets the group name for given GID.
egethome <user>
Gets the home directory for the specified user.
egetshell <user>
Gets the shell for the specified user.
egetcomment <user>
Gets the comment field for the specified user.
egetgroups <user>
Gets all the groups user belongs to. The primary group is returned first, then all supplementary groups. Groups are ','-separated.

MAINTAINERS

[email protected] (Linux)
Michał Górny <[email protected]> (NetBSD)

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/

FILES

user-info.eclass

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/user-info.eclass


Index

NAME
SUPPORTED EAPIS
FUNCTIONS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:01 GMT, November 25, 2024