On Red Hat and Fedora systems, configuration and startup information is also kept in the /etc/sysconfig directory. Here you will find files containing definitions of system variables used to configure devices such as your keyboard and mouse, along with settings for network connections, as well as options for service scripts, covering services such as the Web server and the IPtables firewall. These entries were defined for you when you configured your devices during installation or installed your service software. A sample of the keyboard file, /etc/sysconfig/keyboard, is shown here:


Several of these files are generated by Fedora administration tools such as system-config-mouse, system-config-keyboard, or system-config-network. Table 27-8 lists several commonly used tools and the sysconfig files they control. For example, system-config-mouse generates configuration variables for the mouse device name, type, and certain features, placing them in the /etc/sysconfig/mouse file, shown here:

FULLNAME="Generic - 3 Button Mouse (PS/2)"





Other files, like hwconf, list all your hardware devices, defining configuration variables such as its class (video, CD-ROM, hard drive), the bus it uses (PCI, IDE), its device name (such as hdd or st0), the drivers it uses, and a description of the device. A CD-ROM entry is shown here:

class: CDROM bus: IDE detached: 0 device: hdd driver: ignore desc: "TOSHIBA DVD-ROM SD-M1402"

Some files provide global or system configuration support for service scripts, like iptables, samba, httpd (Apache), or spamassassin. Other files provide configuration settings for corresponding tools like system-config-users.

Several directories are included, such as network-scripts, which lists several startup scripts for network connections—an example is ifup-ppp, which starts up PPP connections.

Some administration tools use more than one sysconfig file; for example, system-config-network places its network configuration information such as the hostname and gateway in the /etc/sysconfig/network file. Specific Ethernet device configurations, which would include your IP address and netmask, are placed in the appropriate Ethernet device configuration file in the /etc/sysconfig/network-scripts directory. For example, the IP address and netmask used for the eth0 Ethernet device can be found in /etc/sysconfig/network-scripts/ifcfg-eth0. Local host settings are in /etc/sysconfig/network-scripts/ifcfg-lo.


Configuration Files



/etc/sysconfig/authconfig /etc/sysconfig/network

Authentication options, such as enabling NIS, shadow passwords, Kerberos, and LDAP.



Selects the level of firewall protection: High, Medium, and None.



Selects the keyboard type.


/etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-ethN

Sets your network settings.



Sets the time and date.



Settings for system-config-users.



Settings for Samba service.



Settings for Apache Web server.



Settings for system-config-securitylevel.

Table 27-8 Sysconfig Files with Corresponding Fedora System Administration Tools

Table 27-8 Sysconfig Files with Corresponding Fedora System Administration Tools

TIP Some administration tools, like system-config-authentication, will further configure configuration files for the services selected. The system-config-authentication tool configures /etc/sysconfig/authconfig, as well as /etc/krb5.conf for Kerberos authentication, /etc/yp.conf for NIS support, and /etc/openldap/ldap.conf for LDAP authentication.

0 0

Post a comment