Editing Configuration Files in the etc Directory


Editing Configuration Files in the /etc Directory

One of the beauties of Linux applications is the way you can make software your own. Whether it's changing the behavior of a command, adding a keyboard shortcut, or changing the color of the application title bar, there are lots of ways to make the applications you use work the way you want them to. Often, you don't even have to open the application you want to modify to make the changes you want. Most applications store their configurations in a simple text file located in the /etc directory. Scroll through the directory to see exactly what is there. Check to see which user owns a file before trying to edit it if Root owns the configuration file, you'll have to log in as the SuperUser to make changes.

Some of the more important system-related configuration files in this directory are

  • fstab This file system table lists each mountable storage device on your computer. These include hard drives, floppy drives, CD and DVD drives, and removable drives. The file displays each device's mount point, its location on the partition table, instructions on whether it should mount automatically on boot, and a few other options. See the section "Mounting a File System" in Chapter 18, "Managing Files, Volumes, and Drives," for more information on /etc/fstab.

  • inittab The system initialization table defines the different runlevels that the system uses at boot to start your computer. Changes to this file (which can be made manually, but also in YaST's suseconfig editor) can determine whether you boot to a graphical or text login screen, as well as whether someone can log in to the machine remotely with a dial-up modem. You will learn more about the boot process and runlevels in Chapter 22, "Managing the Boot Process and Other Services."

  • modprobe.conf and modprobe.conf.local The main modprobe.conf file contains directions and options used when loading kernel modules to operate various pieces of hardware, such as sound cards, USB devices, network cards, and the like. The contents of this file are used during boot. SUSE engineers update this file from time to time and recommend that if you want to do your own editing, you use modprobe.conf.local to keep those changes from being overwritten. You will learn more about modprobe.conf in Chapter 24, "Kernel and Module Management."

  • passwd and shadow The passwd file and its more secure counterpart, shadow, contain the list of all users on the system, along with their account information. It's often said in Unix circles that a user doesn't exist until she has a password. This is one of the reasons why. You will learn more about users and passwords in Chapter 19, "Managing Users, Managing Security."



SUSE Linux 10 Unleashed
SUSE Linux 10.0 Unleashed
ISBN: 0672327260
EAN: 2147483647
Year: 2003
Pages: 332

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net