What are system configuration files?
The kernel itself may be considered a "program." Why does the kernel need
configuration files? The kernel needs to know the list of users and groups in the system,
and manage file permissions (that is, determine if a file can be opened by a specific
user, according to the permissions, UNIX_USERS). Note that these files are not
specifically read by programs, but by a function provided by a system library, and used
by the kernel. For instance, a program needing the (encrypted) password of a user
should not open the /etc/passwd file. Instead, it should call the system library function
getpw(). This kind of function is also known as a system call. It is up to the kernel
(through the system library) to open the /etc/passwd file and after that, search for the
password of the requested user.
Most of the configuration files in the Red Hat Linux system are in the /etc directory
unless otherwise specified. The configuration files can be broadly classified into the
following categories:
/boot/grub/menu.lst
Or
/etc/grub.conf
linux boot loader
/etc/redhat-release
Includes one line stating the Red Hat release number and name.
/etc/inittab
runlevel configurations
/etc/DIR_COLORS -
colors use by the "ls" command
/etc/X11/
config files for X-Windows
/etc/adjtime
correction factor for the RTC (do not edit)
/etc/bash/
config files for bash
/etc/conf.d/
config dir for Gentoo and other Distributions
scripts within are run daily by cron
/etc/cron.d/
/etc/cron.daily/
/etc/cron.deny
list of users for which cron is denyed
/etc/cron.allow
list of users for which cron is allowed
/etc/cron.hourly/
scripts within are run hourly by cron
/etc/cron.monthly/
scripts within are run monthly by cron
/etc/cron.weekly/
scripts within are run weekly by cron
/etc/crontab
general config for cron
/etc/cups/
config dir for CUPS printer server
/etc/dbus-1/
dir for dbus config files
/etc/default/
dir for dbus config files like adduser
/etc/issue
message displayed before console or ssh logins
/etc/fstab
permenant mounting. Lists the filesystems currently "mountable"
/etc/hosts
Contains a list of known hosts (in the local network).
/etc/nologin
If the file /etc/nologin exists, login(1) will allow access only to
user configuration file, contains usernames,userid,groupid, shell etc
by the computer.
root.
/etc/passwd
/etc/shadow
&
/etc/usertty
Contains the encrypted password information for users' accounts and optionally the password
aging information. Included fields are:
Login name
Encrypted password
Days since Jan 1, 1970 that password was last changed
Days before password may be changed
Days after which password must be changed
Days before password is to expire that user is warned
Days after password expires that account is disabled
Days since Jan 1, 1970 that account is disabled
/etc/group
users group configurations
/etc/shells
list of possible "shells" available to the system.
/etc/motd
Message Of The Day; used if an administrator wants to convey
some message to all the users of a Linux server.
/etc/sysconfig/network
hostname configuration file
/etc/resolv.conf
which dns server is looking for
/etc/exports
to share a directory using NFS
/etc/services
Translates network service names to port number/protocol.
/etc/httpd.conf
The configuration file for Apache, the Web server.