Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveUsersAndGroups ¶
func RemoveUsersAndGroups() error
RemoveUsersAndGroups is a public wrapper around removeUsersAndGroupsImpl with default system file paths.
func UpdatePathOwner ¶
UpdatePathOwner recursively updates the owners of a directory. It is equivalent to calling `chown -R uid:gid /path/to/dir`.
Types ¶
type EntryMap ¶
type EntryMap struct {
// contains filtered or unexported fields
}
EntryMap holds a map of user or group entries.
type UsersAndGroups ¶
type UsersAndGroups struct { // Users is an entry map of users. Users *EntryMap // Groups is an entry map of groups. Groups *EntryMap }
UsersAndGroups is a structure that holds entry maps of users and groups. It is returned by AddUsersAndGroups.
func AddUsersAndGroups ¶
func AddUsersAndGroups() (*UsersAndGroups, error)
AddUsersAndGroups is a public wrapper around addUsersAndGroupsImpl with default system file paths.
Click to show internal directories.
Click to hide internal directories.