Skip to main content

Module user

Module user 

Source
Expand description

Code to inspect user db information on unix.

Modulesยง

serde_support ๐Ÿ”’
Serde support for TrustedUser and TrustedGroup.

Structsยง

TrustedUsersCache ๐Ÿ”’
Cache for the trusted uid/gid answers

Enumsยง

TrustedGroup
A group that we can be configured to trust.
TrustedUser
A user that we can be configured to trust.

Staticsยง

CACHE ๐Ÿ”’
Cached trusted id determinations

Functionsยง

cur_groups ๐Ÿ”’
Return a vector of the group ID values for every group to which we belong.
get_own_username ๐Ÿ”’
Find our username, if possible.
get_self_named_gid_impl ๐Ÿ”’
Obtain the gid of a group named after the current user
handle_pwd_error ๐Ÿ”’
Convert an io::Error representing a user/group handling failure into an Error

Type Aliasesยง

Id ๐Ÿ”’
uids and gids, convenient type alias