4.1 About /etc/sysconfig Files

The /etc/sysconfig directory contains files that control your system's configuration. The contents of this directory depend on the packages that you have installed on your system.

Some of the files that you might find in the /etc/sysconfig directory include:

atd

Specifies additional command line arguments for the atd daemon.

authconfig

Specifies whether various authentication mechanisms and options may be used. For example, the entry USEMKHOMEDIR=no disables the creation of a home directory for a user when he or she first logs in.

autofs

Defines custom options for automatically mounting devices and controlling the operation of the automounter.

crond

Passes arguments to the crond daemon at boot time.

firewalld

Passes arguments to the firewall daemon (firewalld) at boot time.

grub

Specifies default settings for the GRUB 2 boot loader. This file is a symbolic link to /etc/default/grub. For more information, see Section 3.3, “Working With the GRUB 2 Bootloader”.

init

Controls how the system appears and functions during the boot process.

keyboard

Specifies the keyboard.

modules (directory)

Contains scripts that the kernel runs to load additional modules at boot time. A script in the modules directory must have the extension .modules and it must have 755 executable permissions. For an example, see the bluez-uinput.modules script that loads the uinput module. For more information, see Section 5.5, “Specifying Modules to be Loaded at Boot Time”.

named

Passes arguments to the name service daemon at boot time. The named daemon is a Domain Name System (DNS) server that is part of the Berkeley Internet Name Domain (BIND) distribution. This server maintains a table that associates host names with IP addresses on the network.

nfs

Controls which ports remote procedure call (RPC) services use for NFS v2 and v3. This file allows you to set up firewall rules for NFS v2 and v3. Firewall configuration for NFS v4 does not require you to edit this file.

ntpd

Passes arguments to the network time protocol (NTP) daemon at boot time.

samba

Passes arguments to the smbd, nmbd, and winbindd daemons at boot time to support file-sharing connectivity for Windows clients, NetBIOS-over-IP naming service, and connection management to domain controllers.

selinux

Controls the state of SELinux on the system. This file is a symbolic link to /etc/selinux/config. For more information, see Section 26.2.3, “Setting SELinux Modes”.

snapper

Defines a list of btrfs file systems and thinly-provisioned LVM volumes whose contents can be recorded as snapshots by the snapper utility. For more information, see Section 21.7.1, “Using snapper with Btrfs Subvolumes” and Section 19.3.6, “Using snapper with Thinly-Provisioned Logical Volumes”.

sysstat

Configures logging parameters for system activity data collector utilities such as sadc.

For more information, see /usr/share/doc/initscripts*/sysconfig.txt.

Note

In previous release of Oracle Linux, the host name of the system was defined in /etc/sysconfig/network. The host name is now defined in /etc/hostname and can be changed by using the hostnamectl command. System-wide default localization settings such as the default language, keyboard, and console font were defined in /etc/sysconfig/i18n. These settings are now defined in /etc/locale.conf and /etc/vconsole.conf.

For more information, see the hostname(5), hostnamectl(1), locale.conf(5), and vconsole.conf(5) manual pages.