General configuration

General configuration — gum general configuration keys

Types and Values

Object Hierarchy


Includes

#include <gum/common/gum-config.h>

Description

General configuration keys are defined below. See GumConfig for how to use them.

Functions

Types and Values

GUM_CONFIG_GENERAL

#define GUM_CONFIG_GENERAL                  "General"

A prefix for general keys. Should be used only when defining new keys.


GUM_CONFIG_GENERAL_DEF_USR_GROUPS

#define             GUM_CONFIG_GENERAL_DEF_USR_GROUPS

Comma separate listed of groups, which every user (other than system user) will be added to at the time of user account creation. Default value is: ''


GUM_CONFIG_GENERAL_USR_PRIMARY_GRPNAME

#define             GUM_CONFIG_GENERAL_USR_PRIMARY_GRPNAME

Primary group name for the new user. If the primary group does not exist, it will be created otherwise user gid will be set accordingly. Default primary group name is same as name of the user.


GUM_CONFIG_GENERAL_DEF_ADMIN_GROUPS

#define             GUM_CONFIG_GENERAL_DEF_ADMIN_GROUPS

Comma separate listed of groups, which admin user will be added to at the time of admin account creation. Default value is: ''


GUM_CONFIG_GENERAL_PASSWD_FILE

#define             GUM_CONFIG_GENERAL_PASSWD_FILE

Path to passwd file which represents user information. Default is /etc/passwd. More information about the file format can be read at the manpages for 'passwd'.

Can be overriden in debug builds by setting UM_PASSWD_FILE environment variable.


GUM_CONFIG_GENERAL_SHADOW_FILE

#define             GUM_CONFIG_GENERAL_SHADOW_FILE

Path to shadow file which represents user shadowed password information. Default is /etc/shadow. More information about the file format can be read at the manpages for 'shadow'.

Can be overriden in debug builds by setting UM_SHADOW_FILE environment variable.


GUM_CONFIG_GENERAL_GROUP_FILE

#define             GUM_CONFIG_GENERAL_GROUP_FILE

Path to group file which represents group information. Default is /etc/group. More information about the file format can be read at the manpages for 'group'.

Can be overriden in debug builds by setting UM_GROUP_FILE environment variable.


GUM_CONFIG_GENERAL_GSHADOW_FILE

#define             GUM_CONFIG_GENERAL_GSHADOW_FILE

Path to group file which represents shadowed group information. Default is /etc/gshadow. More information about the file format can be read at the manpages for 'gshadow'.

Can be overriden in debug builds by setting UM_GSHADOW_FILE environment variable.


GUM_CONFIG_GENERAL_HOME_DIR_PREF

#define             GUM_CONFIG_GENERAL_HOME_DIR_PREF

Prefix to be used when creating home directory for the user. For example, with prefix '/home', user 'newu' home directory will be created as '/home/newu'. Default value is '/home'

Can be overriden in debug builds by setting UM_HOMEDIR_PREFIX environment variable.


GUM_CONFIG_GENERAL_SHELL

#define             GUM_CONFIG_GENERAL_SHELL

Path to user shell executable. Default value is '/bin/bash'


GUM_CONFIG_GENERAL_SKEL_DIR

#define             GUM_CONFIG_GENERAL_SKEL_DIR

Path to skeleton folder. When new users are created, contents of the skel folder is copied to user home directory. Default value is '/etc/skel'

Can be overriden in debug builds by setting UM_SKEL_DIR environment variable.


GUM_CONFIG_GENERAL_UID_MIN

#define             GUM_CONFIG_GENERAL_UID_MIN

Minimum value for the automatic uid selection. Default value is: 2000


GUM_CONFIG_GENERAL_UID_MAX

#define             GUM_CONFIG_GENERAL_UID_MAX

Maximum value for the automatic uid selection. Default value is: 60000


GUM_CONFIG_GENERAL_SYS_UID_MIN

#define             GUM_CONFIG_GENERAL_SYS_UID_MIN

Minimum value for the automatic uid selection for system user. Default value is: 200


GUM_CONFIG_GENERAL_SYS_UID_MAX

#define             GUM_CONFIG_GENERAL_SYS_UID_MAX

Maximum value for the automatic uid selection for system user. Default value is: 999


GUM_CONFIG_GENERAL_GID_MIN

#define             GUM_CONFIG_GENERAL_GID_MIN

Minimum value for the automatic gid selection. Default value is: 2000


GUM_CONFIG_GENERAL_GID_MAX

#define             GUM_CONFIG_GENERAL_GID_MAX

Maximum value for the automatic gid selection. Default value is: 60000


GUM_CONFIG_GENERAL_SYS_GID_MIN

#define             GUM_CONFIG_GENERAL_SYS_GID_MIN

Minimum value for the automatic gid selection for system user. Default value is: 200


GUM_CONFIG_GENERAL_SYS_GID_MAX

#define             GUM_CONFIG_GENERAL_SYS_GID_MAX

Maximum value for the automatic gid selection for system user. Default value is: 999


GUM_CONFIG_GENERAL_PASS_MIN_DAYS

#define             GUM_CONFIG_GENERAL_PASS_MIN_DAYS

Minimum number of days a password may be used. Default value is: 0


GUM_CONFIG_GENERAL_PASS_MAX_DAYS

#define             GUM_CONFIG_GENERAL_PASS_MAX_DAYS

Maximum number of days allowed between password changes. Default value is: 99999


GUM_CONFIG_GENERAL_PASS_WARN_AGE

#define             GUM_CONFIG_GENERAL_PASS_WARN_AGE

Number of days warning given before a password expires. Default value is: 7


GUM_CONFIG_GENERAL_UMASK

#define             GUM_CONFIG_GENERAL_UMASK

Value used to set the mode of home directories created for new users. Default value is: 077


GUM_CONFIG_GENERAL_ENCRYPT_METHOD

#define             GUM_CONFIG_GENERAL_ENCRYPT_METHOD

Value used to set the encryption algorithm. Default value is: 'SHA512'. Other supported options are: 'MD5', 'SHA256', 'DES'.


GUM_CONFIG_GENERAL_SMACK64_NEW_FILES

#define             GUM_CONFIG_GENERAL_SMACK64_NEW_FILES

Value used to set the smack label for newly created files and folders.


GUM_CONFIG_GENERAL_SMACK64_USER_FILES

#define             GUM_CONFIG_GENERAL_SMACK64_USER_FILES

Value used to set the smack label for User files and folders.