27.3.2 Determining user’s IDs

Function: mbfl_system_id ARG
Function: mbfl_system_id_var _RV ARG

Run the program id handing to it the given optional arguments; the program is run through the mbfl_program_exec() interface. If id is not executable or an error occurs executing it: return by calling return_failure().

We need to remember that a pathname to id is determined at package configuration time and hard–coded in the MBFL file; Gathering users data.

mbfl_system_id '--user' '--name'
-| marco

{
  mbfl_declare_varref(USERNAME)
  mbfl_system_id_var mbfl_datavar(USERNAME) '--user' '--name'
  "$USERNAME"
} ⇒ marco
Function: mbfl_system_effective_user_id ARG
Function: mbfl_system_effective_user_id_var _RV ARG

Use the functions mbfl_system_id() and mbfl_system_id_var() to determine the effective user id.

Function: mbfl_system_effective_group_id ARG
Function: mbfl_system_effective_group_id_var _RV ARG

Use the functions mbfl_system_id() and mbfl_system_id_var() to determine the effective group id.

Function: mbfl_system_real_user_id ARG
Function: mbfl_system_real_user_id_var _RV ARG

Use the functions mbfl_system_id() and mbfl_system_id_var() to determine the real user id.

Function: mbfl_system_real_group_id ARG
Function: mbfl_system_real_group_id_var _RV ARG

Use the functions mbfl_system_id() and mbfl_system_id_var() to determine the real group id.

Function: mbfl_system_effective_user_name ARG
Function: mbfl_system_effective_user_name_var _RV ARG

Use the functions mbfl_system_name() and mbfl_system_name_var() to determine the effective user name.

Function: mbfl_system_effective_group_name ARG
Function: mbfl_system_effective_group_name_var _RV ARG

Use the functions mbfl_system_name() and mbfl_system_name_var() to determine the effective group name.

Function: mbfl_system_real_user_name ARG
Function: mbfl_system_real_user_name_var _RV ARG

Use the functions mbfl_system_name() and mbfl_system_name_var() to determine the real user name.

Function: mbfl_system_real_group_name ARG
Function: mbfl_system_real_group_name_var _RV ARG

Use the functions mbfl_system_name() and mbfl_system_name_var() to determine the real group name.


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.