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
dscl_read(String.t(), String.t()) :: {:ok, String.t()} | {:error, :not_found}

Call macOS dscl command to read information

Get gid for group

Link to this function

get_group_info(name) View Source
get_group_info(binary()) :: {:ok, map()}

Get OS group info from /etc/group

Link to this function

get_id() View Source
get_id() :: {user :: name_id(), group :: name_id(), groups :: [name_id()]}

Get user and group of current user from OS id command

Get uid for user

Link to this function

get_user_info(name) View Source
get_user_info(binary()) :: {:ok, map()}

Get OS user info from /etc/passwd