|
||||||||||||||||||||||
|
Chapter 4. The sysconfig DirectoryThe /etc/sysconfig/ directory is where a variety of system configuration files for Red Hat Linux are stored. This chapter outlines some of the files found in the /etc/sysconfig/ directory, their function, and their contents. The information in this chapter is not intended to be complete, as many of these files have a variety of options that are only used in very specific or rare circumstances. 4.1. Files in the /etc/sysconfig/ DirectoryThe following files are normally found in the /etc/sysconfig/ directory:
4.1.1. /etc/sysconfig/amdThe /etc/sysconfig/amd file contains various parameters used by amd, which allow for the automatic mounting and unmounting of file systems. 4.1.2. /etc/sysconfig/apmdThe /etc/sysconfig/apmd file is used by apmd as a configuration for what power settings to start/stop/change on suspend or resume. It is configured to turn on or off apmd at boot time, depending on whether the hardware supports Advanced Power Management (APM) or whether or not the user has configured the system to use it. The apm daemon is a monitoring program that works with power management code within the Linux kernel. It capable of alerting users to low battery power on laptops and other power-related settings. 4.1.3. /etc/sysconfig/arpwatchThe /etc/sysconfig/arpwatch file is used to pass arguments to the arpwatch daemon at boot time. The arpwatch daemon maintains a table of Ethernet MAC addresses and their IP address pairings. For more information about what parameters are available for this file, see the arpwatch man page. By default, this file sets the owner of the arpwatch process to the user pcap. 4.1.4. /etc/sysconfig/authconfigThe /etc/sysconfig/authconfig file sets the kind of authorization to be used on the host. It contains one or more of the following lines:
4.1.5. /etc/sysconfig/clockThe /etc/sysconfig/clock file controls the interpretation of values read from the system hardware clock. The correct values are:
Earlier releases of Red Hat Linux used the following values (which are deprecated):
4.1.6. /etc/sysconfig/desktopThe /etc/sysconfig/desktop file specifies the desktop manager to be run, such as:
4.1.7. /etc/sysconfig/dhcpdThe /etc/sysconfig/dhcpd file is used to pass arguments to the dhcpd daemon at boot time. The dhcpd daemon implements the Dynamic Host Configuration Protocol (DHCP) and the Internet Bootstrap Protocol (BOOTP). DHCP and BOOTP assign hostnames to machines on the network. For more information about what parameters are available in this file, see the dhcpd man page. 4.1.8. /etc/sysconfig/firstbootBeginning with Red Hat Linux 8.0, the first time the system boots, the /sbin/init program calls the etc/rc.d/init.d/firstboot script, which in turn launches Setup Agent. This application allows the user to install the latest updates as well as additional applications and documentation. The /etc/sysconfig/firstboot file tells the Setup Agent application not to run on subsequent reboots. To run it the next time the system boots, remove /etc/sysconfig/firstboot and execute chkconfig --level 5 firstboot on. 4.1.9. /etc/sysconfig/gpmThe /etc/sysconfig/gpm file is used to pass arguments to the gpm daemon at boot time. The gpm daemon is the mouse server which allows mouse acceleration and middle-click pasting. For more information about what parameters are available for this file, see the gpm man page. By default, it sets the mouse device to /dev/mouse. 4.1.10. /etc/sysconfig/harddisksThe /etc/sysconfig/harddisks file tunes the hard drive(s). The administrator can also use /etc/sysconfig/hardiskhd[a-h] to configure parameters for specific drives.
The /etc/sysconfig/harddisks file may contain the following:
4.1.11. /etc/sysconfig/hwconfThe /etc/sysconfig/hwconf file lists all the hardware that kudzu detected on the system, as well as the drivers used, vendor ID, and device ID information. The kudzu program detects and configures new and/or changed hardware on a system. The /etc/sysconfig/hwconf file is not meant to be manually edited. If edited, devices could suddenly show up as being added or removed. 4.1.12. /etc/sysconfig/i18nThe /etc/sysconfig/i18n file sets the default language, any supported languages, and the default system font. For example:
4.1.13. /etc/sysconfig/identdThe /etc/sysconfig/identd file is used to pass arguments to the identd daemon at boot time. The identd daemon returns the username of processes with open TCP/IP connections. Some services on the network, such as FTP and IRC servers, will complain and cause slow responses if identd is not running. But in general, identd is not a required service, so if security is a concern, do not run it. For more information about what parameters are available for this file, see the identd man page. By default, the file contains no parameters. 4.1.14. /etc/sysconfig/initThe /etc/sysconfig/init file controls how the system will appear and function during the boot process. The following values may be used:
4.1.15. /etc/sysconfig/ipchainsThe /etc/sysconfig/ipchains file contains information used by the ipchains initialization script when setting up the ipchains service. This file is modified by typing the command /sbin/service ipchains save when valid ipchains rules are in place. Do not manually edit this file. Instead, use the /sbin/ipchains command to configure the necessary packet filtering rules and then save the rules to this file using /sbin/service ipchains save. Use of ipchains to set up firewall rules is not recommended as it is deprecated and may disappear from future releases of Red Hat Linux. If a firewall is necessary, use iptables instead. 4.1.16. /etc/sysconfig/iptablesLike /etc/sysconfig/ipchains, the /etc/sysconfig/iptables file stores information used by the kernel to set up packet filtering services at boot time or whenever the service is started. Do not modify this file by hand unless familiar with how to construct iptables rules. The easiest way to add rules is to use Security Level Configuration Tool (redhat-config-securitylevel), the /usr/sbin/lokkit command, or the GNOME Lokkit application to create a firewall. Using these applications automatically edit this file at the end of the process. Rules can be created manually by using /sbin/iptables: then type /sbin/service iptables save to add the rules to the /etc/sysconfig/iptables file. Once this file exists, any firewall rules saved in it persists through a system reboot or a service restart. For more information on iptables see Chapter 16 iptables. 4.1.17. /etc/sysconfig/irdaThe /etc/sysconfig/irda file controls how infrared devices on the system are configured at startup. The following values may be used:
4.1.18. /etc/sysconfig/keyboardThe /etc/sysconfig/keyboard file controls the behavior of the keyboard. The following values may be used:
4.1.19. /etc/sysconfig/kudzuThe /etc/sysconfig/kuzdu file triggers a safe probe of the system hardware by kudzu at boot time. A safe probe is one that disables serial port probing.
4.1.20. /etc/sysconfig/mouseThe /etc/sysconfig/mouse file is used to specify information about the available mouse. The following values may be used:
In addition, /dev/mouse is a symbolic link that points to the actual mouse device. | |||||||||||||||||||||