Documentation ¶
Index ¶
- Variables
- func GetAdditionalGroupsForUser(rootdir string, userid uint64) ([]uint32, error)
- func GetGroup(rootdir, groupspec string) (uint32, error)
- func GetUser(rootdir, userspec string) (uint32, uint32, error)
- func LookupUIDInContainer(rootdir string, uid uint64) (user string, gid uint64, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoSuchUser indicates that the user provided by the caller does not // exist in /etc/passws ErrNoSuchUser = errors.New("user does not exist in /etc/passwd") )
Functions ¶
func GetAdditionalGroupsForUser ¶
GetAdditionalGroupsForUser returns a list of gids that userid is associated with
func GetGroup ¶
GetGroup returns the gid by looking it up in the /etc/group file groupspec format [ group | gid ]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.