mix_deploy v0.5.0 MixDeploy.User View Source
Get information about OS users and groups
Link to this section Summary
Functions
Call macOS dscl command to read information
Get gid for group
Get OS group info from /etc/group
Get user and group of current user from OS id command
Get uid for user
Get OS user info from /etc/passwd
Link to this section Functions
Link to this function
dscl_read(path, key) View Source
Call macOS dscl command to read information
Link to this function
get_gid(name)
View Source
get_gid(name)
View Source
get_gid(String.t()) :: non_neg_integer()
get_gid(String.t()) :: non_neg_integer()
Get gid for group
Link to this function
get_group_info(name) View Source
Get OS group info from /etc/group
Link to this function
get_id()
View Source
get_id()
View Source
get_id() :: {user :: name_id(), group :: name_id(), groups :: [name_id()]}
get_id() :: {user :: name_id(), group :: name_id(), groups :: [name_id()]}
Get user and group of current user from OS id command
Link to this function
get_uid(name)
View Source
get_uid(name)
View Source
get_uid(String.t()) :: non_neg_integer()
get_uid(String.t()) :: non_neg_integer()
Get uid for user
Link to this function
get_user_info(name) View Source
Get OS user info from /etc/passwd