Etcsysconfig

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:

KEYBOARDTYPE="pc" KEYTABLE="us"

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)"

MOUSETYPE="PS/2"

XMOUSETYPE="PS/2"

XEMU3="no"

DEVICE=/dev/mouse

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.

Tools

Configuration Files

Description

system-config-authentication

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

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

system-config-securitylevel

/etc/sysconfig/iptables

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

system-config-keyboard

/etc/sysconfig/keyboard

Selects the keyboard type.

system-config-network

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

Sets your network settings.

system-config-date

/etc/sysconfig/clock

Sets the time and date.

system-config-users

/etc/sysconfig/system-config-users

Settings for system-config-users.

system-config-samba

/etc/sysconfig/samba

Settings for Samba service.

system-config-httpd

/etc/sysconfig/httpd

Settings for Apache Web server.

system-config-securitylevel

/etc/sysconfig/system-config-securitylevel

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