RHCE - RH302 Red Hat Certified Engineer
Certification Exam Preparation Course in a Book for Passing the RHCE - RH302 Red Hat Certified Engineer Exam The How To Pass on Your First Try Certification Study Guide

RHCE - RH302 Red Hat Certified Engineer Certification Exam Preparation Course in a Book for Passing the RHCE - RH302 Red Hat Certified Engineer Exam - The How To Pass on Your First Try Certification Study Guide
Copyright © 2009 Notice of rights All rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Notice of Liability The information in this book is distributed on an “As Is” basis without warranty. While every precaution has been taken in the preparation of the book, neither the author nor the publisher shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the instructions contained in this book or by the products described in it. Trademarks Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations appear as requested by the owner of the trademark. All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention of infringement of the trademark. No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with this book.

3

This self-study exam preparation guide for the RHCE RH302 Red Hat Certified Engineer exam contains everything you need to test yourself and pass the Exam. Including all the exam topics, covered indepth and insider secrets, complete explanations of all RHCE subjects, test tricks and tips, over 250 highly realistic sample questions, and exercises designed to strengthen understanding of the RHCE concepts and prepare you for exam success on the first attempt are provided.
Can you imagine valuing a book so much that you send the author a "Thank You" letter? This book includes new exercises and sample questions never before in print. Offering numerous sample questions, critical time-saving tips plus information available nowhere else, this book will help you pass the RHCE - RH302 Red Hat Certified Engineer exam on your FIRST try. Buy this. Read it. And Pass the RHCE - RH302 Red Hat Certified Engineer Exam. This book provides a laser sharp focus on all the exam objectives with a cohesive, concise, yet comprehensive coverage of all the topics included in the RHCE - RH302 Red Hat Certified Engineer Lab Exam. It includes over 250 questions modeled after the real exam with answers and an Exam Quick Prep feature which recaps all the important points for the last hour preparation before taking the exam. Covers all RH302 exam topics, including: x x x x x x x x x x x x x x Hardware installation and configuration The boot process Linux filesystem administration Package management and Kickstart User and group administration System administration tools Kernel services and configuration Apache and Squid Network file sharing services (NFS, FTP, and Samba) Domain Name System (DNS) E-mail (servers and clients) Extended Internet Services Daemon (xinetd), the Secure package, and DHCP The X Window System Firewalls, SELinux, and troubleshooting

4 .

...................................... 14 1......................2..1....... 29 2............................................4.... 16 1.......................3.........................Starting init .............Kickstart File .......................................2..............................3.. 19 1................................Using Hard Disk ........ 27 2..........................3.........................3...........Installation .......3.................................................................................... 14 1........................Using DVD...1..................................................................Grub configuration file ...............................2........................................... 26 2............................................... 14 1...........................................2.1...................................................................................................2.......2............./etc/inittab file .. 20 2..........................................................................................1...... 1 Installation and Hardware Configuration .....................................................................................................RH302 Red Hat Certified Engineer ........................................... 14 1................RH302 Red Hat Certified Engineer Exam .................................................................................................................................. 15 1........1....................................Configuring Hardware ................Using Network ....2.......................................2...........................................................The How To Pass on Your First Try Certification Study Guide ... 15 1............... 29 ................................................Creating Kickstart file ............................................. 16 1.................................Configuring Grub ........................................................ 18 1......................................................................................................................................The Boot Process ..3..........................1...................................................................Grub ...............................................................................................................................................Overview .....................1......... 25 2....Use of Kickstart file ................................Overview.......................................... 1 Certification Exam Preparation Course in a Book for Passing the RHCE ...................4................................................ 25 2...........2............ 25 2.5 Contents RHCE ...........................2............................................................................................................................Graphical utilities ............................................................................

......Creating a filesystem ....................2...........................4...................................... 52 3....... 40 3......................................................3......................................................... 52 3...................................................... 46 3...........................................................................3............................4.............................. 47 3................ 39 3.............................................................2........................3.1............ 43 3...............................1.............3...... 50 3..........................................................................Logical Volume Group ........................... 49 3..... 48 3..........................................2.......................................5...............................................................................................Initializing System....... 54 ....................Searching for badblocks ......2...........Automatically mounting a filesystem ...................2.....Overview ..............Checking and Repairing a filesystem ...................................... 40 3...5......4............................................................2...5.............................7...............Filesystem Administration ..........Using command chkconfig ............................Checking status of automount ....................... 37 2......................................Unmounting a filesystem..............Filesystem Information ..............................................................6 2........................................ 43 3.......................................1...........1........ 52 3........................./etc/mtab .........................................1..................................................................3...........................6.......Creating Swap space ....................../etc/fstab file ......2.1................ 48 3............................................................4...................... 44 3........................................ 33 2..........Creating RAID device ..............................................Enabling swap space.......................................2.......Mounting a filesystem.......................................................................................................................... 34 2....................3.......runlevel.......RAID disks .................................................................................................. 40 3.................5..............................................Using Graphical utilities .......6...........................................................Disabling swap space ..... 42 3................... 41 3..................................4.......................................3...........................................................................................................3..............................................................................................................................................................................

.......................................................4.......................7 3.................................................1......... 66 5....................................................Deleting group.........7...................................................3..............................................7............Modifying group information ..............................................7........1......................................1............................. 73 5................ 73 5......................................7.......................................... 65 5................ 76 6............................................................................................2.............................3................ 66 5.................................................................................Logical volume management utility .. 73 5................... 59 4.....Using User Manager ......................................................System Administration ..........................................................................................Creating User Account .....................Using make ...............................................1..........................................................Package Manager ................................................................................... 66 5..........................3.................. 59 4...Creating A Logical Volume Group .......................................................................... 76 5..............................Group Administration .... 58 3................................Overview .........................................................2................................... 64 4..................................................... 72 5........................................User and Group Administration ........................................................................................6.................... 58 3............................ 57 3........................Remove a volume group .......................................2..........Remove a logical volume ..Overview........ 73 5.......................Adding New Group .Using rpm ..........................5.............................4.......................................Space Usage .......3..........................1............................................7..................................................4........................................... 73 5........... 72 5.........................................................................................5...............................Changing user password ..6................................................................................... 62 4.................................................................................5............................................................ 77 ..................................................... 58 4............................................................................................................................................Package Management .......................................................... 59 4.......................................Remove a physical volume ...........................2...............................................5............7...................Deleting user account ........Using yum ...........................Modifying user account ..................5........ 54 3...............5....................................................

..................................................................1............1..............................................................................The su command.....................Log information........................................................................................................................... 81 6.................. 89 7..................................................................................................................................................................... 84 6....................................4..............................2.................................................. 78 6......................................................3...............The ps command ..... 78 6.....4.........................................................2.....................................................2.......................Inserting module into kernel .............. 84 6................2..................................................2..............................................................................Modules Loaded into Kernel ..3.....................................................................................Using System Monitor ........ 87 7.. 87 7.......2....2...4... 78 6............ 89 7............................................................................................ 86 7.......................3.................................2..................................................................................................Removing module from kernel ..........................2..............................................................................1......................5.........................................Getting Administration Rights ....................4...3.....8 6......Kernel Services and Configuration ............................ 82 6...1....3.........2........................... 77 6.................................... 79 6.../etc/sudoers file ........................2.............................................................Using top ..Other commands ......................... 90 7.................. 82 6................................. 89 7.... 88 7......................................................................................................................4......................2............................................1............Overview ............Overview............................2...............................................................................................................Using the su .............3........................Process and Kernel Information ...................................................... 90 .........................4..3........ 90 7....Using modprobe command ....................... 87 7..........2.........................Administrative commands ........Changing owner and group ........ 79 6...........................1.......................Monitoring System performance ...........................................................Changing priority of process...................kernel Modules ..........................................

.............................................3..............2.......1....Cache size options............... 111 9..............................Overview............................................................................................................................................................2...........................................................1........................Main Configuration file ....................................................HTTP Server Configuration ........... 105 8.................... 101 8......................................................................................................................................................Network options ........Access control section .1.........................................2................3........................................................................................4..............5...........Overview ....................................................................... 93 7.....................3.........3............................................................Squid Server ..........................4................................................................ 112 9.............................................................................................................3................................. 92 7...........2..... 111 9.....Log File and Cache directory section ................................2............... 112 9...............Configuring Squid ..................................................... 111 9..........................................................................................4............. 106 9...................Using dmesg ............................ 96 7........ 97 8......................................................3... 113 ...................................................................4.....Using cron ........................................... 112 9........Automating Tasks -............................................1.................. 103 8.........................2................................................................................2.....Global Environment Configuration .............. 99 8...................................................................................... 111 9...Virtual hosts section ............................................................................ 91 7.................................... 99 8..............4...................................Using batch command .................................4............2.......... 101 8...................................................................................2.....................................3.....Web Server ...2.....................................3......Starting Apache ...1.................................. 99 8............4...................Syslogd ..........................Using at ............................ 93 7...............................Main server section ....................................................................Neighbor selection algorithm option ...............3...................9 7.......................3.........................................

.5...................................2..........................Options format..............................................................................................................Squid Daemon .....................................................................................................................................................................................................................................1...................................Overview ................. 114 9...................... 133 ....... 118 10... 128 12...............................................4................................................................5................... 128 12......................................1.....................................Starting vsftd................................................1...................1....................LDAP Server ..............Administrative parameters ............3......... 126 11.............4...............................Configuring vsftpd .......... 116 10........... 122 11....1......2......................................................... 122 11...........................3.....................................................Samba Server ...............................................1.........................Using nfsstat .............................................ftp command prompt .............NFS Server Configuration.................................................................... 127 12.2................................FTP Server ....................................................................................Cache Manager .........................Starting NFS service.......................................................................................6................................4..................3..................................................................................................................................................Samba configuration file .. 128 12..............4.4.........................................................................................NFS Server .... 133 13......................Sharing Folders ............ 122 11....................................................Overview ....................... 127 11................................................................ 117 10............................................................... 130 12...............................Overview ...................Checking the service ......... 128 12............................overview ....................................................................Starting Samba service ..................Format of hostname .3.......................................Very Secure FTP daemon Configuration ........................... 116 10.............................................................................................................. 116 10.................................................... 119 10...........................6................................................................... 115 10...............................................................................................................................................................................3..................................................... 117 10................3..................2... 131 13.......................................................................................2.................. 122 11........................................................................Accessing the NFS directory ................................................................................................................................................. 114 9............................................................................Samba Server Configuration ........................................................................... 120 10........................10 9...................

...2................................ 139 15.............................................................................................................................................................................................5........................................................................................ 139 15..........................................................1.........................................................1.......................................................2..............2... 145 17................................ 146 17..............3..........4................................................................................................................... 139 15........................Starting Named daemon .................................................. 143 16................................................................................................Overview ........... 140 15......................................Configuration file .......4.... 137 14.............................. 147 ........................................................1...........................................Setting NIS domain name ........4................. 135 14. 143 16...................................................................... 137 14.....................................................................................................................................Overview ..........3.......................DHCP client...........................................................5.................................................4.. 140 16......... 137 14......11 13............................................................................. 140 15.............................................................Working of DHCP server...........Overview ...................................................................................................................................................................................................DNS server ........................................................................NIS server..........................Important files .......................................................................................1..............................2......5......................................................................................Starting the DHCP server............2.............................................Configuration ................................................4...................................................................... 139 15................1.............. 146 17............Overview ..................................................................................3....................................NIS database .....................Sendmail................................................................................... 146 17.................................................................................................................. 135 14....................................................................................2............................................................Starting ypbind service .../etc/mail ....3.............................1.........................................Starting the ldap .........Mail Services ...................................................................2......................................BIND Configuration GUI ... 137 14........................................................................Staring NIS server ..... 136 14............................................. 143 16..........Configuring NIS ........................................................... 133 13..............Mapping Information ...............1....................................................................... 135 14............. 143 16..Starting NIS server ...................................DHCP Server ............................................. 135 14..................

...... 153 17.......Configuration file .........................................................5............................................5.....2.....2...............................Postfix ...............3.............................................................Starting Dovecot ................................................... 155 18.................... 152 17..........................1..........................................................................................................................3......Log files ...........................4..........................................deny .................5........3...................4................... 151 17....................................... 153 17.....3................Switching MTA ....................................................................................................................................... 156 18..............................2. 150 17.............4.................1..........................5....................Checking Sendmail Server .2.3.................................................................5............................................Network Security.....................4............................................../var/spool/postfix ..../etc/hosts........................................................................................................................................................2..........3....... 150 17................3.....allow.................... 155 18.....Actions taken by server on a mail ..................Dovecot ...................................Mailbox ......................................... 149 17.............db files .........................................3............................................Important Files .............................................The daemon xinetd .....................Security Level Configuration ...........Configuration file ............................................ 159 ................................................................ 147 17...........................................................................................12 17........................................Overview ............................................................................... 149 17........................................................./etc/hosts....2.............................................................3......................1........................................................................... 155 18.2...................................................4.............. 157 18......................................................... 156 18............................................................................ 152 17.....................1...............................................Generating the ... 153 18...............................................................Configuration files .........................................2.....Starting postfix server ................. 151 17.........2......................3.........Using TCP wrappers...........1.................................... 148 17...................... 156 18.3.. 152 17..

...................................................PAM and SELinux ......................... 159 19........................13 18..................... 164 ......1............................................................................................ 162 19.....2...................................................................................../etc/pam...............................................2....................................... 160 19..........................3......... 160 19.............. 162 19.........................................................PAM ............................SELinux ....Command Reference ............................................................................2................................................................................................................................................................. 160 19...........................................................................5.............................Command Reference ..........................d .............1..........................................................................SELinux administration ........ 163 Over 250 Exam Preparation Questions .........

Configure the sound card. Choose the time zone in which system is.Overview Red Hat Enterprise Linux is one of the major commercial Linux distributions available in market .1.2.Using DVD To begin installation using the DVD place the DVD media in the DVD drive of the computer and set the BIOS to boot from DVD drive. 1.Installation Anaconda is the default installer in Red Hat Linux. After installation is complete remove the DVD media from DVD drive. Choose partitioning (options are use free space on hard disk.swap partition and one /boot partition (for dual boot system) Install the grub bootloader on MBR. Choose the languages system should support. Fedora Core Linux is an open source project of Red Hat. . Choose install type.1. Set the firewall options.Configure the firewall. Select the packages.14 INSTALLATION AND HARDWARE CONFIGURATION 1. Choose partition scheme (options are automatic partition or manual partition) . User can either choose for new install or upgrade an existing installation. Configure the network device. The installation process can be broadly divided into many parts depending on the method used for installation z z z DVD Network Hard Disk 1. Choose keyboard layout. The user had to accept the License terms. The steps of the installation process are z z z z The DVD media is checked Choose language to use during installation process. New version of Fedora Core Linux is released every six months.2.use whole hard disk. Enter the root password.and custom partition) If custom partition option is chosen create at least one / partition and swap partition (for single boot system) and create a / partition. z z z z z z z z z z z Choose the software packages to install.use current Linux partitions.

In case of FTP server copy the files to directory /var/ftp/pub. Then copy the vmlinuz and initrd files of the DVD media in /boot directory.2.15 Then the user is prompted for user name and password on the login screen. In case of NFS server the directory containing the installation files should be made accessible. 1. Choose Red Hat Installation on the Grub menu to begin the install process. To boot the installation process the boot loader should be informed about the files copied in the /boot directory.7) kernel /vmlinuz initrd /initrd.conf file to achieve the purpose title Red Hat-Installation root (hd0. 1.2. After above steps reboot the computer.Using Hard Disk For installation from hard disk it is assumed that Red hat Linux is already running on the computer.2. In case of web server or HTTP server the files need to be copied in the directory /var/www/html. These files are needed to boot the installation process.img root(hd0. The following entry is added in the /boot/grub/grub. GRUB is installed as the bootloader in Red Hat by default. .Using Network For the network installation the installation files should be copied to the computer which will act as install server.3. In the hard disk install copy all the files of the DVD in a partition drive which is not used during the new installation.7) means that /boot partition exists on eighth partition of first hard disk.

1.1. At the boot prompt enter the command askmethod :boot linux askmethod This lets the user to select the Installation Method.Creating Kickstart file User has a choice to use graphical utility to create kickstart file or open a text editor and write the commands.3.3.3. 1. 1.16 Note : when using the installation from Network or Hard disk choose the option INSTALL OR UPGRADE in text mode on the first screen of the Installation process.cfg is created based on the options chosen by the user during the installation process.1.Kickstart File After successful installation of Red Hat Linux a kickstart file /root/anaconda-ks.1.Text File install cdrom lang en_US.UTF-8 keyboard us xconfig --startxonboot network --device eth0 --bootproto dhcp rootpw --iscrypted firewall --enabled --port=22:tcp authconfig --enableshadow --enablemd5 selinux --enforcing timezone bootloader --location=mbr --driveorder=sda --append="rhgb quiet" .

1. selinux is used to set the security enhanced linux the options are . The xconfig is used to configure the monitor and video card. Fourth line chooses the keyboard layout.Graphical utility Open Terminal and type the command system-config-kickstart to start the kickstart configurator.hard drive are other options which can be used for NFS. option –enable means firewall is enabled.17 The install option denotes new installation and upgrade option will denote upgrade of an existing system. cdrom shows the install method used. firewall command sets the firewall label. In above case it configures the Ethernet interface. The network command is used to configure the network.-disable timezone is used to select the timezone of the user.FTP.1.FTP. [root@localhost ~]# system-config-kickstart .--permissive.HTTP.HTTP.2.and hard disk install methods. bootloader command is used to set the partition where the default bootloader grub is installed. rootpw denotes the root password. NFS. z z z z For FTP method use option url –url give the ftp url name for HTTP method use option url –url give http url name for hard drive use option harddrive –dir=/give directory path –partition=give partition for NFS method use option nfs –server=servername –dir=directory name Third line sets the installation language to be used during installation .3. option disable means firewall disabled.-enforcing.

To use kickstart installation use following steps z z z create a kickstart file copy the kickstart file on cdrom.3. 1.2.cfg') Kickstart from FTP.18 The user can use the graphical interface to choose the options and the kickstart file will be generated automatically.Use of Kickstart file It is used to automate the installation process. for example) ks=cdrom: ks=file:<path> ks=ftp://<path> ks=hd:<dev> ks=http://<path> Kickstart from HTTP. NFS mount options . ks=nfs(:options):<path> Kickstart from NFS. on network or on Local hard drive use above commands on the :boot prompt during the installation Kickstart from CDROM Kickstart from a file (path = 'fd0/ks. Kickstart via harddrive (dev = 'hda1'.

The command kudzu can be run to detect and configure the changed hardware on a system. Below is the format of the /etc/sysconfig/hwconf file class: CDROM bus: SCSI detached: 0 device: scd0 desc: "HL-DT-ST CD-RW GCE-8526B" host: 1 id: 0 channel: 0 lun: 0 class: VIDEO bus: PCI detached: 0 driver: i2c-i810 desc: "Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device" video.xdriver: i810 .4.19 are optional. It checks the file /etc/sysconfig/hwconf for the hardware installed and matches the data with the current hardware. 1.Configuring Hardware The file /etc/sysconfig/hwconf contains the listing of installed hardware. kudzu is run every time a Red Hat box is rebooted.

20 vendorId: 8086 deviceId: 2562 subVendorId: 8086 subDeviceId: 2562 pciType: 1 pcidom: 0 pcibus: 0 pcidev: 2 pcifn: 0 The first entry is for a CDROM drive attached with the system and second is for the VIDEO card attached with the system.DDC monitor probing.Graphical utilities 1.1.4.4.1. kudzu can be started in two modes z z safe probe mode no safe probe mode safe probe mode disables serial port probing.PS/2 probing.1. 1. It then updates the data in /etc/sysconfig/hwconf. To enable no safe probe mode on startup enter the line SAFE=no in the file /etc/sysconfig/kudzu. If any hardware is added or removed then it configures the added one and unconfigures the removed one.For keyboard layout Enter the below command in terminal [root@localhost pub]# system-config-keyboard .

For sound card Enter the below command in terminal [root@localhost pub]# system-config-soundcard .Color depth under the setting tab configure the monitor type and video card under tab hardware tab Use dual type tab for second monitor type and video card.21 The user can select the keyboard layout and press OK .1.2.3.1.For monitor and video card Enter the below command in terminal [root@localhost pub]# system-config-display z z z User can set the Resolution.4. 1. 1.4.

22 This utility can be used to check the proper working of soundcard and reload the audio drivers and rewriting the configuration files. 1.For network devices Enter the below command in terminal [root@localhost pub]# system-config-network or [root@localhost pub]# neat .4.4.1.

5. On hardware tab the network hardware physically attached with computer and detected by Red Hat Linux can be configured.secondary and tertiary dns IP addresses and dns search path.1. DNS tab is used to configure system's hostname and primary.For printer Enter the below command in terminal [root@localhost pub]# system-config-printer .4. 1. Any network device can be selected and activated.23 This utility is used to configure the network devices. Hosts tab is used to specify static computer host name to IP address mapping. z z z z z On devices tab all network devices detected by Red Hat Linux are listed. IPSec tab is used to configure IPSec tunnel and host to host connections.

24 This utility is used to add new printer or configure printers. 1.4.1.For date and time Enter the below command in terminal [root@localhost pub]# system-config-date or [root@localhost pub]# system-config-time .6.

conf. Grub is able to boot non Linux operating system like Windows also.2. z z z z Checking of MBR (Master boot record) by BIOS.25 z z z date & time tab is used to set the current date and time. When a system is booted the user sees the grub menu.THE BOOT PROCESS 2. The grub menu lists the operating systems which are installed on the system. Choosing Operating system to boot on bootloader menu.1. Grub boots the operating system chosen by the user on the grub menu.Grub Grub is default bootloader if Red Hat Linux is installed in the system. Booting the Operating System 2.Overview The boot process can be divided into many steps. Every operating system displayed on the grub menu has its listing in the grub configuration file /boot/grub/grub. network time protocol tab is used to synchronize system's clock with remote time server using network time protocol time zone tab is used to select the time zone in which the system lies. Loading the bootloader in MBR. . 2.

7)/grub/splash.xpm.3194.img title Windows rootnoverify (hd0.g.0) . root (hd0.fc7. e.21-1.6.gz hiddenmenu title Fedora-Linux root (hd0.Grub configuration file Let the system have two operating system installed windows and Fedora Linux then the contents of the grub configuration file is # grub. This means that # # # # all kernel and initrd paths are relative to /boot/.7) kernel /vmlinuz-2.1.6.26 2.21-1.7) kernel /vmlinuz-version ro root=/dev/sda11 initrd /initrd-version.2.3194.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition.fc7 ro root=LABEL=/1 rhgb quiet initrd /initrd-2.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0.

The option default=0 means that if user makes no choice then the first operating system in the file will be booted.Configuring Grub There are two ways to configure the grub bootloader. The option chainloader +1 means that grub will call the other boot loader to boot the operating system. The option timeout=5 means that the user will have to make choice in 5 seconds on the grub menu. The kernel gives the control to the init process which is called father of all processes.2. The rootnoverify (hd0.2. If user chooses fedora Linux on menu then the bootloader sees /dev/sda8 partition of the first hard disk (root (hd0.7) means the files needed to boot the operating system is present on the eighth partition of the first hard disk. z z By editing the configuration file using text editors by using Boot Configuration . The initrd denotes the initial RAM disk boot image.0) means that grub will not mount the partition. kernel indicates the kernel which is loaded. If the user makes no choice in 5 seconds then the default operating system will boot.27 chainloader +1 The title is used to set the display name on the grub menu corresponding to the operating system.g. In the above file the default operating system that will boot is Fedora. If the user chooses the windows option then the windows operating system is booted. 2. E. The ro option on the kernel line means that the partition is to be mounted read only. on grub menu Fedora-Linux Windows is displayed.

gedit . 2.2.2.28 2.Editing /boot/grub/grub.2. It also helps the user to choose the timeout period in seconds.2. If the user chooses 5 seconds then grub will wait for 5 seconds for user to make a choice after that it will boot the default operating system.2. After making the changes the grub has to be restarted to make the changes take place.1. This option is also available during the installation of Red Hat Linux.Password Protecting Grub Grub can also be password protected.2. 2.3.and emacs. The MD5-encrypted password for grub can be generated using the command [root@localhost ~]# man grub-md5-crypt .2.By using Boot Configuration To start the boot configuration graphical utility type the below command in the terminal window [root@localhost ~]# system-config-boot The utility helps to chose default operating system which will be booted in case user has not made any choice within the time period on the grub menu.conf using Text editors The configuration file can be edited using any of the text editors like vi.

If the entry initdefault is not mentioned in the file then the user has to enter the runlevel values in the console for the boot process to proceed. After entering the command the user is prompted to enter the password and then to verify the password user has to reenter the password.1. initdefault An initdefault entry specifies the runlevel .1. init Action respawn Description The process is restarted using the process for this action. Action describes the action to be taken by init.Starting init init is the father of all processes. init looks to the file /etc/inittab and runs the script in the file /etc/inittab. The process will be started once when the specified runlevel is entered and init will wait wait for its termination. runlevel is the value between 0. An entry in the inittab file has the following format: id:runlevel:action:process z z z z id is the unique identifier. process specifies the process to be executed.3. and bootwait entries are ignored. 2.4.3.3.2./etc/inittab file This file describes which processes are started at boot up and during normal boot process (for different run levels different numbers of processes are started). The kernel starts the init process after mounting basic filesystems during the boot process. The init process looks for the entry initdefault in the file /etc/inittab.29 in terminal. 2.The runlevel field of sysinit. The entry initdefault indicates the default runlevel with which system needs to be started up.5 and 6 (some more values are available but not used). boot. The init process has the pid (process identification number each and every process running on the system has a unique number assigned to them known as PID) of 1.

The runlevels used by RHS are: # 0 . # # inittab # # # Default runlevel. init will prompt for runlevel on console. ctrlaltdel If the user presses the CTRL+ALT+DELETE keys of the keyboard together then the init responds by shutting down the system or rebooting (depending on the process set) powerfail This action denotes that power failure has occurred and init takes the action depending upon the process set for this action Powerokwait If the powerfail action has occurred and the process mentioned for the powerfail action is to shutdown after 2 minutes then this action comes into picture if the power is restored before 2 minutes then the process for this action takes place. The runlevel field is ignored. . Below is a sample /etc/inittab file. The process field is ignored.halt (Do NOT set initdefault to this) This file describes how the INIT process should set up the system in a certain run-level. If none exists. sysinit The process will be executed during system boot.30 entered after system boot. Lines beginning with ‘#’ are comments.

if you do not have networking) # 3 . assume we have a few minutes # of power left. # This does.Single user mode # 2 .d/rc 5 l6:6:wait:/etc/rc. of course.d/rc 4 l5:5:wait:/etc/rc.Full multiuser mode # 4 .unused # 5 .Multiuser.d/rc 6 # Trap CTRL-ALT-DELETE ca::ctrlaltdel:/sbin/shutdown -t3 -r now # When our UPS tells us power has failed.d/rc.sysinit l0:0:wait:/etc/rc.X11 # 6 .d/rc 1 l2:2:wait:/etc/rc. si::sysinit:/etc/rc.31 # 1 . Schedule a shutdown for 2 minutes from now.d/rc 2 l3:3:wait:/etc/rc.d/rc 3 l4:4:wait:/etc/rc. without NFS (The same as 3.d/rc 0 l1:1:wait:/etc/rc. assume you have powered installed and your .reboot (Do NOT set initdefault to this) # id:5:initdefault: # System initialization.

d/rc. Shutdown Canceled" # Run gettys in standard runlevels 1:2345:respawn:/sbin/mingetty tty1 2:2345:respawn:/sbin/mingetty tty2 3:2345:respawn:/sbin/mingetty tty3 4:2345:respawn:/sbin/mingetty tty4 5:2345:respawn:/sbin/mingetty tty5 6:2345:respawn:/sbin/mingetty tty6 # Run xdm in runlevel 5 x:5:respawn:/etc/X11/prefdm -nodaemon The line id:5:initdefault: sets the action to initdefault and the runlevel is 5. pr:12345:powerokwait:/sbin/shutdown -c "Power Restored. The line ca::ctrlaltdel:/sbin/shutdown -t3 -r now denotes that if the user presses the CTRL+ALT+DELETE keys then the system reboots after three seconds. The line si::sysinit:/etc/rc.sysinit is executed. .d/rc 5 denotes that the process /etc/rc. cancel it. The line 5:5:wait:/etc/rc.d/rc. System Shutting Down" # If power was restored before the shutdown kicked in.sysinit is executed for every runlevel for the action sysinit the process /etc/rc.d/rc5 will be executed for the runlevel 5 and init will wait until the process is not completed.32 # UPS connected and working correctly. pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure.

33 The line pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure. System Shutting Down" denotes that if power failure occurs then the powerfail action takes place and the system is scheduled to wait for two minutes before shutting down. 2.3. Shutdown Canceled" denotes that if the power resumes before two minutes then cancel the shutdown of the system.runlevel A runlevel is a software configuration of the system which allows only a selected group of processes to exist. The line pr:12345:powerokwait:/sbin/shutdown -c "Power Restored. No graphical tools are available. Network services like NFS/NIS/Xinetd are not available. 3 Multiuser mode. 2 Multiuser mode. Many users can login into the system. The line x:5:respawn:/etc/X11/prefdm -nodaemon denotes that the X11 server is started in case of runlevel 5. Thus graphic interface is available in runlevel 5. All the network services are available. The network services are available but the graphics mode is not available 4 5 Not used Multiuser mode. runlevel 0 Description It is used to halt the system. The graphical tools are not available as the X server is not running. It should not be used in initdefault. 1 Single user mode. The graphics mode is also available as .3.

1 and 6 are reserved.d /etc/rc.4.c are also available but are not used.4.d /etc/rc.Starting Services The services which will be started for a run level depends on the files contained in the directory of that runlevel. The runlevels 0.d/rc2.34 the X11 is running.d . A good choice for the initdefault entry 6 All the process is terminated and the system is rebooted.Initializing System The script /etc/rc.a. It is a shell script which performs many functions like z z z z z z z z sets the hostname of the system checks SELinux status sets the system clock Initializes hardware Configures kernel parameters Mounts the filesystems Configures the hardware Starts and enables the swap space 2.d /etc/rc.3. Other runlevels like 7.1.9.d /etc/rc. runlevel 0 1 2 3 4 directory /etc/rc.d/rc3. This is not good choice for initdefault.d/rc4.3. 2.d/rc1.b.sysinit is run once at the boot time.d/rc0.8.

d The directory contains the scripts of all the runlevels.3.4. All the programs (files of run level directories) whose name begin with S starts the service and name begin with K kills or stops the service.Naming convention of files in runlevel directories The files in the runlevel directories have special naming convention.4. #! /bin/bash # # network # # chkconfig: 2345 10 90 # description: Activates/Deactivates all network interfaces configured to \ # start at boot time.d/init.d/init.d All programs in the directories of the above runlevel are symbolic link to programs in the directory /etc/rc.3.d/init. Thus for a run level which scripts of the directory /etc/rc.d/rc6.g.d contains files for runlevel 5.d/rc5.2.d/rc5. the directory /etc/rc.35 5 6 /etc/rc.d contains the run level scripts.d /etc/rc.d.Format of scripts in /etc/rc.d are to be run depends on the contents of the directory corresponding to the runlevels. The directory /etc/rc. E.d/init. The two digits determine the order in which the services will run. 2. The concept of deciding the order in which the scripts will run remains the same for the files with name beginning with K. 2. Name of all the programs either begins with S or K followed by 2 digits (0-9) and after that name of the service. Bring up/down networking . It contains two files S10network and S56Xinetd then the service S10network is run first.3. Below is the sample file to start the network service.

4.6 that is Use telinit 5 to switch to runlevel 5.Changing runlevels To change the current runlevel use the below command [root@localhost ~]# telinit n The letter n should be replaced by the values 0. 2.1.36 # ### BEGIN INIT INFO # Provides: $network ### END INIT INFO The line # chkconfig: 2345 10 90 sets the script to start in the runlevels 2.d a file with name K90network will exist as network service stops with the priority 90 in runlevel 1.4.5.3.3.d/rc1.4.d a file with name S10network will exist (as network service starts for run level 5 with the priority 10 and in the runlevel directory /etc/rc.4.4 and 5 with the priority or order 10 and in case of all other runlevels it stops the service with the order or priority 90.6.Configuring services for a runlevel .2. 5 denote that the current runlevel is 5.3. 2.4.Determining current and previous runlevel To determine current and previous runlevel use the below command [root@localhost ~]# runlevel N5 The letter N denotes that there is no previous runlevel (that is runlevel has not been changed).3.3. The init process kills or starts the processes necessary to switch to that runlevel in above case it will do it for runlevel 5. 2.5.d/rc5. In the runlevel 5 directory /etc/rc.

5.3. [root@localhost ~]# chkconfig service-name on The service service-name is enabled for that runlevel. There are two methods to reorganize the services and view the information about the services in a runlevel.5. User can also see the status of each service in each runlevel.3.Deleting a new service To delete service enter below command in terminal [root@localhost ~]# chkconfig --del new-service-name The service new-service-name is deleted from the chkconfig management and all the links in the runlevel directories are also removed.2.4.3.5.3. 2. 2.3.37 User can decide the services which should run in a runlevel and which should not run in a run level. 2.Adding a new service To add new service enter below command in terminal [root@localhost ~]# chkconfig --add new-service-name The new-service-name should have a start or kill entry in each of the runlevel. 2.Using command chkconfig The command chkconfig can used to view the information about every service in a runlevel and start or stop them. It can also be used to add a new service or delete a new service as well.Enable a service To enable a service in a runlevel enter below command in terminal (while working in that run level).5.1.Disable a service .5. 2.3.

3.5.List status of all services To list status of all service in runlevels enter below command in terminal [root@localhost ~]# chkconfig –list The status of all the services is displayed for all runlevel.38 To disable a service in a runlevel enter below command in terminal (while working in that run level) [root@localhost ~]# chkconfig service-name off The service service-name is disabled for that runlevel.5.3. For example [root@localhost ~]# service httpd start . 2. 2.3. For example [root@localhost ~]# chkconfig --list httpd httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off The service httpd is enabled in the runlevels 2.4 and 5 and disabled in 0.5.6.3.5.Starting a service To start a service enter below command in terminal [root@localhost ~]# service service-name start The service service-name is started in that runlevel.1.7. 2. and 6.List status of a service To list status of a service in runlevels enter below command in terminal [root@localhost ~]# chkconfig –list service-name The status of the service service-name is displayed for all runlevel.

Stopping a service [ OK ] To start a service enter below command in terminal [root@localhost ~]# service service-name stop The service service-name is stopped in that runlevel. For example [root@localhost ~]# service httpd stop Stopping httpd: The service httpd is stopped.Using Graphical utilities [ OK ] The service configuration utility can be used to edit a runlevel.add a service and delete a service.5. It can be used to start a service.3. 2.39 Starting httpd: The service httpd is started. To start the service configuration use the below command in the terminal window [root@localhost ~]# serviceconf or [root@localhost ~]# system-config-services .8. stop a service. 2.4.

40 User can check the box on the left of the service and then clicks to start. . It has journaling feature that improves recovery from crashes.FILESYSTEM ADMINISTRATION 3. All other filesystems are contained in it in form of subdirectories.stop or restart the service. Let the / partition and /usr partition are mounted on /dev/sda5 and /dev/sda6 partitions then the sub directories and files below the /usr are stored in the /dev/sda6 partition.Filesystem Information /bin – it contains commands to be used by common users. The filesystems are organized in a hierarchy.Overview Red Hat Linux uses the ext3 filesystem. 3. If a disk partition is mounted on a filesystem then all the sub directories and files below that mount point are stored on that partition. All the filesystems which don't have separate partition are stored in the partition of / filesystem. After making any changes it need to be saved using the save option on the graphic tool. The / filesystem is on top of the hierarchy. 3.2.1.

processes running on the system.1. applications.mode=620 defaults defaults defaults 00 12 12 12 12 00 00 00 00 11 LABEL=/home1 /home LABEL=/boot1 tmpfs devpts sysfs proc /boot /dev/shm tmpfs /dev/pts /sys /proc devpts sysfs proc LABEL=SWAP-sda13 swap swap . It about the directory of the /proc. /etc – it contains configuration file. /sbin – it contains administrative commands. /usr – contains user and administrative commands. and documentation. user configuration files. This means that is not mounted on any disk partiotion. Web server. data used by services like /var – it contains log files of different services. The process information is kept into a sub The file contains information about the filesystems. The sample /etc/fstab file is LABEL=/1 LABEL=/opt1 LABEL=/usr1 / /opt /usr ext3 ext3 ext3 ext3 ext3 defaults defaults defaults defaults defaults defaults gid=5.41 /boot – it contains bootable Linux kernel and bootloader /dev – it contains files representing device of the system. The name of the sub 3. /proc – The /proc filesystem is virtual file system. and directories of FTP./etc/fstab file the /proc filesystem contains system information and information directory is same as that of process PID.2.

The defaults option mounts the filesystem with following options of mount rw. 3. exec. dev Interpret character or block special devices on the file system.swap are associated with a device that is Partition of hard disk but the filesystems with type proc. The second column represents the mount point in the filesystem. The sample /etc/mtab file is below /dev/sda11 proc sysfs / /proc /sys ext3 proc sysfs rw rw rw 00 00 00 . suid Allow set-user-identifier or set-group-identifier bits to take effect. The filesystem with the option noauto in the fourth field are not mounted during boot time. rw means in read write mode.2. auto. async All I/O to the file system should be done asynchronously.tmpfs are not associated with any partition of hard disk.sysfs.42 The first column represents the device name representing the filesystem. nouser a non root user cannot mount the filesystem.2. The fourth column contains the options used while mounting the filesystem during the system boot using the mount command. The filesystem types ext3. nouser./etc/mtab To view the filesystems which are actually used by a running Linux system type the command mount in terminal or view the contents of the /etc/mtab file. suid. exec means allow execution of executable files. The difference is /etc/fstab contains the static information about the filesystems while /etc/mtab contains the dynamic information about the filesystem.and async. dev. auto means automatically mounted at boot time. The third column denotes the filesystem type.

Mounting a filesystem To mount a filesystem mount command is used. 3.4. The standard format of mount command is mount -t filesystem-type device-path-name directory-name If a user wants to mount cdrom media in directory /home/movie then issue the command [root@localhost ~]# mount /dev/cdrom /home/movies If a user wants to mount windows partition /dev/sda4 on /home/movie then issue the command [root@localhost ~]# mount -t vfat /dev/sda4 /home/movies 3.gid=5.on-which-the-device-was-mounted . Second column contains the filesystem mounted.Unmounting a filesystem To unmount a filesystem use the following command umount directory-name.2.mode=620 0 0 rw rw rw rw rw 00 00 00 00 00 00 00 /dev/sda10 /usr /dev/sda9 /dev/sda8 tmpfs none sunrpc /home /boot /dev/shm /proc/sys/fs/binfmt_misc binfmt_misc rw /var/lib/nfs/rpc_pipefs rpc_pipefs rw First column contains the disk partition which is mounted.3.2. Rests of the columns are same as that of the /etc/fstab file.43 devpts /dev/sda12 /dev/pts /opt devpts ext3 ext3 ext3 ext3 tmpfs rw.

For example files are being copied from mounted directory /home/movies then below command will unmount the directory when file copy is over. mkfs -t ext2 mkfs.ext2 . mkfs command is used to create the filesystems on a device. mke2fs . mkfs -t ext3 . The command which will be invoked depends on the filesystem which is to be created. filesystem Commands used ext2 ext3 mkfs. root@localhost ~]#umount -l /home/movies To force unmounting of a directory use the below command root@localhost ~]#umount -f /home/movies 3.rewritable Cd s.rewritable DVDs and hard disk partitions. A device can be floppy disks.2.ext3.Creating a filesystem A filesystem can be created on a device.5.44 To unmount the /dev/sda4 use the following command root@localhost ~]#umount /home/movies To unmount a device when the device is no longer in use (at the time when the command is issued the device is in use so the command waits for the device). mke2fs . Below is the list of commands and filesystems for which the commands will be invoked. The format of the command is mkfs -t filesystem-type device-name For example if ext3 filesystem is to be created on the re writable CD device then the command will be mkfs -t ext3 /dev/cdrom mkfs command is front end to the commands which are actually invoked to carry out the work of creating the filesystems on the device.

mkdosfs.xfs . mkfs -t xfs mkswap The commands mke2fs uses the configuration file /etc/mke2fs.mkfs.msdos ntfs xfs swap mkfs. The configuration file contains the default parameters while creating the ext2 and ext3 filesystems. Below is the sample /etc/mke2fs file [defaults] base_features=sparse_super.mkfs -t ntfs mkfs.filetype.vfat .conf.45 vfat mkfs.dir_index blocksize = 4096 inode_ratio = 8192 [fs_types] small = { blocksize = 1024 inode_ratio = 4096 } floppy = { blocksize = 1024 } news = { inode_ratio = 4096 .ntfs.resize_inode. mkfs -t vfat.

0. 267 MB/s This creates a file named swap in the /home directory of size 10 MB. count=10 . The chmod command is used to change the file permissions of swap to 0 so that no one has the right to read.The ls -l swap command below shows the file permissions attached with the swap file created. It is data file (the output of the command file swap will return data as output).0373886 s.3.Creating Swap space mkswap command is used to create a swap area on a device or file.46 } largefile = { inode_ratio = 1048576 } largefile4 = { inode_ratio = 4194304 } The defaults section of the file defines the default parameters used by the mke2fs. 3. The fs_types section defines the default parameters which should be used for a specific filesystems for example for the floppy the blocksize is set to 1024. The file should be created using the following commands [root@localhost ~]# dd if=/dev/zero of=/home/swap bs=1000000 10+0 records in 10+0 records out 10000000 bytes (10 MB) copied.write or execute it. The default parameters can be overridden from the command line. If the system has less swap area and no partition device can be used as swap area or user is not willing to do that then a swap area can also be created on a file.

1.3. This file can be used to see whether the swap area thus enables is used by the system or not.1 root root 10000000 2009-01-11 13:28 swap [root@localhost home]# chmod 0 swap [root@localhost home]# ls -l swap ---------.Enabling swap space The swap space created cannot be used by the system unless it is enabled using the swapon command. . size = 9994 kB 3.47 [root@localhost home]# ls -l swap -rw-r--r-. The format of the swapon command is swapon device-name For example to enable the swap space created on the swap file above use the command [root@localhost home]# swapon swap The file /proc/swaps shows the swap space area of the system. To check the contents of the /proc/swaps enter the below command on terminal [root@localhost home]# cat /proc/swaps Filename /dev/sda13 /home/swap Type partition file Size Used Priority -1 -2 819272 4 9756 0 The listing shows two swap areas on the system /dev/sda13 which is hard disk partition and /home/swap which is file.1 root root 10000000 2009-01-11 13:28 swap Create swap space on the file swap [root@localhost home]# mkswap swap Setting up swapspace version 1.

fsck -t ntfs fsck. The format of the command swapoff is swapoff device-name To disable the swap area created on the file swap in above case use the command [root@localhost home]# swapoff swap Now to check whether the swap file is disabled view the contents of the file /proc/swaps [root@localhost home]# cat /proc/swaps Filename /dev/sda13 Type partition Size Used Priority 819272 4 -1 3.Checking and Repairing a filesystem The fsck command is used to check the linux filesystem and optionally repair it. Below is the list of commands and filesystems for which the commands will be invoked.48 3. The command which will be invoked depends on the filesystem which is to be checked.xfs . Filesystem Commands used ext2 ext3 vfat ntfs xfs fsck.Disabling swap space To disable a swap area use the command swapoff. The general format of the fsck command is fsck -t filesystem-type device-name If no device-name is specified on the command line then the command checks the filesystem in order they are mentioned in the /etc/fstab file.ext2 .3. fsck -t ext2 fsck.ntfs.2. fsck -t ext3 fsck.vfat . fsck -t xfs .fsck. The fsck command is the front end to the commands which are invoked for different filesystem types. fsck -t vfat.msdos fsck.ext3.4.

the filesystems which have data should not be checked with badblocks using the -w option.File system errors corrected 2 .49 fsck command returns the following exit codes 0 .Usage or syntax error 32 .System should be rebooted 4 .File system errors left uncorrected 8 . Those devices or filesystem should be checked for badblocks using the badblocks command without any option or with the -n option.Searching for badblocks The command badblocks searches for the badblocks on a device.Operational error 16 .Shared library error The exit code returned when multiple file systems are checked is bit-wise OR of the exit codes for each file system that is checked.No errors 1 . To protect data and check for badblocks use the below command badblocks device-name or badblocks -n device-name To erase the data and check for the badblocks use the below command badblocks -w device-name .1. The -n option is read only mode so no data is written on the device block and hence the data is not erased. So. 3. The badblocks command should not be run with the -w option as badblocks searches for the presence of badblocks on the device by writing a pattern on every block of the device which erases the data on the device.4.fsck canceled by user request 128 .

The autofs service lies in the /etc/rc.master and finds the mount points on system. automount mounts a mount point when the mount point is accessed and deactivates it when it is no longer used.d directory.misc /net -hosts # # Include central master map if it can be found using # nsswitch sources.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). When a system boots then the autofs service runs with the option start and when the system is shutting down the autofs service runs with the option stop.Automatically mounting a filesystem When a system is booted the filesystems are automatically mounted.50 3. The autofs service controls the operation of the automount daemons. # /misc /etc/auto. Below is the sample /etc/auto. The users don’t have to run the mount command to mount the filesystems like /home./usr etc. # Sample auto. It reads the file /etc/auto. Each mount points found is mounted by automount and a thread is also started by automount to manage the mount point. This automatic mounting of filesystem is due to the autofs service which runs when the system boots.d/init.5. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the .master file.

The line cd -fstype=iso9660.nodev :/dev/cdrom # the following entries are samples to pique your imagination #linux #boot #floppy #floppy #e2floppy #jaz -ro.intr -fstype=ext2 -fstype=auto -fstype=ext2 -fstype=ext2 -fstype=ext2 -fstype=ext2 ftp.master In the above file the lines starting with # are comments.51 # same will not be seen as the first read key seen takes # precedence.soft.misc tells the daemon automount to look into the file /etc/auto.misc file is # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # Details may be found in the autofs(5) manpage cd -fstype=iso9660. The sample /etc/auto.ro.org:/pub/linux :/dev/hda1 :/dev/fd0 :/dev/fd0 :/dev/fd0 :/dev/sdc1 :/dev/hdd #removable In the above file the line starting with # are comments. The line /misc /etc/auto.nosuid.misc for the mount points.example. # +auto.ro.nodev :/dev/cdrom .nosuid.

RAID disks Linux uses the ext3 filesystem type which has journaling feature.d/init.5.1.. 3.6.Creating RAID device The RAID devices can be created during installation and after installation. RAID disks are used to improve disk performance and minimize the chance of data loss. But journaling feature is not sufficient to handle all the cases for example if one of the partition is damaged then the files cannot be recovered. Linux supports LINEAR md devices. If power failure occurs when a system is running and it shutdowns immediately (not a graceful shutdown that is the system shuts down before user can shutdown using the shutdown -h now command or from the graphic panel choosing the shutdown option) leaves the filesystem in a inconsistent state.1.Checking status of automount To check whether automount is running in the system or not type the following command in the terminal [root@localhost ~]# /etc/rc.1. RAID10. RAID6. RAID devices are virtual devices created from two or more real block devices. RAID0 (striping). RAID4. RAID5.1.6. RAID1 (mirroring).During installation . This allows multiple devices to be combined into a single device to hold a single filesystem.d/autofs status automount (pid 2157) is running. Journaling feature of the filesystem enables it to recover from such kind of crashes.52 Causes the automount to mount the /dev/cdrom device when a CDROM media is inserted into the drive and change the directory to the /dev/cdrom.6. 3. Journaling feature means that it helps to recover from crashes and brings the filesystem into a consistent state. Linux Software RAID devices are implemented through the md (Multiple Devices) device driver. If user comments this line the /dev/cdrom drive will not be automatically mounted when a CDROM media is inserted into the drive. 3. Currently.. 3.

It creates. The format of the mdadm command for creating raid devices is mdadm . raid device. The values of n1 can be 0. On that panel select create a software raid partition button. enables.6. This creates the raid devices.53 During installation of Red Hat Linux the RAID devices can be created using the disk druid partition manager.-raid devices=3 /dev/sda0 /dev/sda1 /dev/sda2 3. and 10. The hard-disk-device name is name of the devices separated by spaces./dev/sda2 use the following command mdadm .-level=n1 . 4. The raid devices information can be monitored. Raid array means the physical devices which together makes a logical raid device. 6.-create /dev/md0 .-level=1 . z z z z z On the disk druid menu selecting the raid button launches the raid options panel.Other uses of mdadm The mdadm can be used to mark a device of a raid array to be marked as failed. The various format of the mdadm command are mdadm raid-device-name -f hard-disk-device-name . viewed using the mdadm command after the installation.1. 1. assembles and monitors the raid devices. remove it from the raid array or add it to raid array. Create the partition with software raid as the filesystem type from the raid options panel select create a raid device button Enter the mount point. The value of n2 is equal to the number of physical devices which forms the raid device /dev/md0.3.6.-raid devices=n2 hard-disk-device-name n1 is a number which denotes the raid level of the raid device.1./dev/sda1. raid level information on the raid device panel. filesystem type.-create raid-device-name .2. The raid device name will be /dev/md0 if the first raid device is being created and so on. To create a raid device /dev/md0 of level 1 using the hard disks /dev/sda0. mdadm command is all purpose command for raid devices. 5.Using mdadm command To create the RAID device use the mdadm command. 3.

3.1.-details raid-device-name 3.7. To remove the device /dev/sda2 of the raid device /dev/md0 of the above example the command used is mdadm /dev/md0 -r /dev/sda2 mdadm raid-device-name -a hard-disk-device-name is used to add the device as a spare.54 to mark the device as failed. The format of pvcreate command is pvcreate hard-disk-partition-name To initialize the partition /dev/sda5 of the hard disk run the command [root@localhost ~]# pvcreate /dev/sda5 . The command used for the purpose is given below mdadm .1.7.4. The pvcreate command is used to initialize the partition for use by logical volume utilities.Creating A Logical Volume Group To create a Logical volume group at first physical volume is initialized.6. To mark the device /dev/sda2 of the raid device /dev/md0 of the above example as failure the command used is mdadm /dev/md0 -f /dev/sda2 mdadm raid-device-name -r hard-disk-device-name is used to remove the device. To add the device /dev/sda2 of the raid device /dev/md0 of the above example the command used is mdadm /dev/md0 -a /dev/sda2 3.Logical Volume Group Logical volume group support is provided in Red Hat Linux.Information about a raid device The mdadm command is also used to see the detailed information about an active raid device.

.... The format of command vgcreate and vgextend is vgcreate volume-group-name hard-disk-partition1 hard-disk-partition2 …......Volume group --VG Name System ID Format Metadata Areas lvm2 1 my_vol_grp Metadata Sequence No 1 VG Access VG Status read/write resizable .. vgextend volume-group-name hard-disk-partition1 hard-disk-partition2 .55 Physical volume "/dev/sda5" successfully created Then add the physical volume thus created to the new volume group using the command vgcreate or added to an existing volume group using the command vgextend..... To create the new volume group my_vol_grp for the /dev/sda5 of the above example use the command [root@localhost dev]# vgcreate my_vol_grp /dev/sda5 Volume group "my_vol_grp" successfully created To view the attributes of the volume group created use the command vgdisplay. The format of the command vgdisplay is vgdisplay volume-group-name For example to view the attributes of the volume group my_vol_grp use the command [root@localhost dev]# vgdisplay my_vol_grp --.

77 GB 4.00 MB 2500 0/0 2500 / 9. M means MB and K means KB).56 MAX LV Cur LV Open LV Max PV Cur PV Act PV VG Size PE Size Total PE Alloc PE / Size Free PE / Size VG UUID 0 0 0 0 1 1 9. The format of the command lvcreate is lvcreate -l %VG or %FREE volume-group-name lvcreate -L G or M or K volume-group-name In the first case the space on which the logical group is to be created is expressed as the percentage of the total space of the volume group or the percentage of the total space of the free space. In the second case space on which the logical group is to be created is given as the total space expressed in MB.7G my_vol_grp .77 GB 3I5EmB-es47-Deqz-hN9w-eUaK-u1i6-tMSCoW To create a new logical volume in the volume group the command lvcreate is used. KB (G means GB. GB. To create the logical volume group on the my_vol_grp volume group created earlier use the command [root@localhost dev]# lvcreate -L 9.

70 GB Logical volume "lvol0" created The above commands create the logical volume successfully. The format is lvremove /dev/volume-group/logical-volume-name .Remove a logical volume The lvremove command is used for this purpose. [root@localhost dev]# lvdisplay /dev/my_vol_grp/lvol0 --.70 GB 2484 1 inherit 0 Read ahead sectors Block device 253:0 3. To display the information about the logical volume thus created use the lvdisplay command. To check the logical volume created view the contents of the directory /dev/my_vol_grp.2.Logical volume --LV Name VG Name LV UUID LV Write Access LV Status # open LV Size Current LE Segments Allocation /dev/my_vol_grp/lvol0 my_vol_grp CaD0Bp-Czo8-fCbu-QXi5-d0I1-LHS3-TwJvVw read/write available 0 9.7.57 Rounding up size to full physical extent 9. It will contain an entry lvol0.

5. To remove all the logical volumes in a volume group use lvremove /dev/volume-group 3.7. vgremove volume-group-name 3. viewing and editing the information about the volume group and logical volume.Logical volume management utility Red Hat offers graphical utility to achieve all the functions performed above like creating a volume group. To invoke the Logical Volume Management utility run the below command in the terminal window [root@localhost ~]# system-config-lvm .Remove a physical volume The command pvremove is used for this purpose.7. removing volume group and logical volume. creating a logical volume.Remove a volume group The command vgremove is used for this purpose.4. pvremove physical-volume 3.3.7.58 To remove logical volume logical-volume-name.

4.PACKAGE MANAGEMENT 4. 4.Overview A good operating system should allow the user to install and update software with ease. The uninitialized entries are the normal partitions of the hard disks and the volume group shows the volume group created for example this window shows the volume group my_vol_grp and within the volume group the logical volume lvol0 is listed. and graphical utilities. The yum uses the configuration file /etc/yum. Red Hat offers the luxury of maintaining the package in a simple and efficient way. There are many options available to the user yum.1. rpm.59 In the above utility the left hand panel shows the volume groups and the uninitialized entries. User can use the buttons edit properties to edit the properties of the logical volume. .d.2.Modified) is used to install and update the software packages in rpm format from software repositories on the web.Using yum yum (Yellow Dog Updater .conf and the configuration files in the directory /etc/yum.conf.

The files in the directory /etc/yum.conf is [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.ls .d contain the location on the web which yum searches for the packages.d. The option gpgcheck if 1 forces yum to check the gpg keys of the packages and if 0 the gpg keys are not checked.60 The yum command checks the configuration files and searches the locations mentioned in the configuration files for the package which is needed to be updated or installed by yum. keepcache options value if 0 causes the headers and cache files to be deleted after successful installation and value 1 retains the files. The contents of the directory are [root@localhost etc]# cd yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800 cachedir mentions the directory which yum uses as the cache memory that is storage for storing temporary file. Each file represents the location of the packages.repos. The log file where yum writes the log information.repos. The format of sample configuration file /etc/yum.

repo fedora-updates-testing.repocp fedora-updates.repo Each file corresponds to a software repository on web. The general format of the command is yum option package-name In case of some options yum don't need package name so the format becomes yum option Option install update Description Installs a package Updates a package usage yum install package-name yum update package-name yum check-update check-update Checks whether an update is available for the packages installed in the system .repo fedora. The yum command takes a number of inputs.repo livna. The file will be in the below form [fedora] name=Software-Server baseurl=give the http address of the server mirrorlist=give address of the mirror location enabled=1 gpgcheck=1 gpgkey=location of the gpg key file.repocp livna-devel.61 fedora-development.repo fedora.repo fedora-updates.repo livna-testing.

3.Using rpm A lot number of Red Hat software exists in rpm format.62 remove Removes the package and any dependent package from the system yum remove package-name erase Same as remove Same as remove 4. upgrade. It is very easy to install the rpm software packages by using the rpm command. The rpm command can be used to install. If the in- . If any previous version of package is not installed then the package is installed. -F rpm -F package-name Upgrade a previously installed package. -e rpm -e package-name Erases a package from system -q rpm -q package-name Queries about a package -V rpm -V package-name Verify an installed package against its original software package. verify. Option Usage -i -U description rpm – i package-name Install a package rpm -U package-name Updates package already installed on the system. and uninstall the rpm software.

-v rpm -v Prints verbose information -vv rpm -vv Prints lots of verbose information -h rpm -h Prints # marks during the package processing using rpm.fc7 . The format is [root@localhost rpm]# rpm -qvv python D: opening db environment /var/lib/rpm/Packages joinenv D: opening db index D: locked db index D: opening db index D: opening db index /var/lib/rpm/Packages rdonly mode=0x0 /var/lib/rpm/Packages /var/lib/rpm/Name rdonly mode=0x0 /var/lib/rpm/Pubkeys rdonly mode=0x0 D: read h# 1353 Header sanity check: OK D: ========== DSA pubkey id b44269d0 4f2a6fd2 (h#1353) D: read h# 741 Header V3 DSA signature: OK.63 stalled package matches with original software package then there is no output. -vv. and -h is used with the other options. If the rpm command is to be used with two options then use this form usually the option -v. 50 # are printed when 100% processing is done.5-12. key ID 4f2a6fd2 python-2.

Using make The software packages are available in the tar.bz2 format. The packages need to be uncompressed and then the source code is to be build using the.gz This forms realplay. It uses /etc/rpmrc configuration file which is configuration file specific to a system. In above case it queries the database to get the information about the python rpm package.rpmrc in the home directory of a user is the user level rpm configuration file.64 D: closed db index D: closed db index D: closed db index /var/lib/rpm/Pubkeys /var/lib/rpm/Name /var/lib/rpm/Packages D: closed db environment /var/lib/rpm/Packages D: May free Score board((nil)) In above example rpm queries the rpm database to find out whether the python software is installed. 4. The two commands can be combined into one command tar xvfz realplay.gz. If the software is installed it prints the information about the software. To uncompress the packages with tar. The configuration file .4. The rpm command uses the two global configuration file /usr/lib/rpm/rpmrc and /usr/lib/rpm/redhat/rpmrc. tgz.tar.gz .tar generates directory realplay.tar and then use the command tar xvf realplay. make and make install commands. The option -q and -vv are used together.tar. It also uses the /var/lib/rpm/* directory as the database for storing rpm package information.gz extension use the commands gunzip realplay. and tar. /configure.

/configure make make install The . It searches the software repositories which have been defined in the yum configuration files.tar.bz2 format then use the command bzip2 -d realplay.65 generates directory realplay. The command make install installs the package on the system. To invoke the Package Manager enter the below command in terminal [root@localhost redhat]# system-config-packages .tar After uncompressing the package change the working directory of the terminal to the directory realplay Now to install the package run the commands . If the source code is in tar.5. The make command makes the package for the system./configure command configures the package for the platform of the system.Package Manager package manager is a graphical utility which gathers the information about the packages available over the web for update and installation.bz2 It forms the directory realplay. 4.

On the search tab user can search for a package and on the list tab the user gets the listing of all the package. One more user account is asked to create (user may choose to create the account or skip).2. available package. 5. During installation root user account has to be created (root user is administrator of the system). and installed package depending upon the option box chosen by the user. Group account can also be created after installation.Overview Linux is a multi user operating system.USER AND GROUP ADMINISTRATION 5. User account can also be created after installation. The general format of the useradd command is useradd options user-name . 5. After choosing for the packages which need to be installed the user can decide to apply the changes made on the panel. It is also used to update default values used while creating a new user. If the changes are applied then the packages are downloaded from web and are installed.Creating User Account The useradd command is used to create a new user.66 On the browse tab user can browse for the packages available over the web in different categories.1. Each user belongs to a group account.

or name of file. MAIL_DIR takes #precedence. The sample /etc/login. relative to the # home directory. # QMAIL_DIR is for Qmail .67 useradd -D options useradd -D The first form is used to create a new user while the second form is used to override the default options used while creating a new user. useradd reads the file /etc/login. To view the default values enter the following command in terminal [root@localhost ~]# useradd -D GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes Simplest form of useradd command is useradd user-name If this command is run useradd creates the user account by using the default values.defs for the default values to be used while creating the user. The third form is used to view the default values which will be used while creating a user account.defs file is # *REQUIRED* #Directory where mailboxes reside. If you _do_ define both.

PASS_WARN_AGE Number of days warning given before a #password expires. PASS_MIN_LEN Minimum acceptable password length.mail # Password aging controls: # #PASS_MAX_DAYS Maximum number of days a password may #be used. # # # # PASS_MAX_DAYS 99999 PASS_MIN_DAYS 0 PASS_MIN_LEN 5 PASS_WARN_AGE 7 # # Min/max values for automatic uid selection in useradd # UID_MIN UID_MAX # # Min/max values for automatic gid selection in groupadd 500 60000 PASS_MIN_DAYS Minimum number of days allowed #between password changes.68 # #QMAIL_DIR MAIL_DIR #MAIL_FILE Maildir /var/spool/mail . .

this command is run when removing a user. UMASK 077 # This enables userdel to remove user groups if no members exist. # It should remove any at/cron/print jobs etc. If not specified. .69 # GID_MIN GID_MAX # # If defined. # CREATE_HOME yes 500 60000 # The permission mask is initialized to this value. # the permission mask will be initialized to 022. owned by # the user to be removed (passed as the first argument). # USERGROUPS_ENAB yes # Use MD5 or DES to encrypt password? Red Hat use MD5 by #default. we do. # #USERDEL_CMD /usr/sbin/userdel_local # # If useradd should create home directories for users by default # On RH systems. This option is overridden with the -m flag #on # useradd command line.

70

MD5_CRYPT_ENAB yes So if a user is created with the command [root@localhost ~]# useradd user1 Then a directory user1 is created in /home, shell is /bin/bash, mailbox lies in /var/spool/mail directory and the contents of the /etc/skel directory is copied in the /home/user1 directory. /etc/skel contains the login and application startup scripts. The contents of the /etc/skel are viewed using ls -la command. [root@localhost skel]# ls -la total 80 drwxr-xr-x 4 root root 4096 2009-01-13 22:20 . drwxr-xr-x 138 root root 12288 2009-01-13 22:53 .. -rw-r--r-- 1 root root 33 2007-02-12 20:48 .bash_logout -rw-r--r-- 1 root root 176 2007-02-12 20:48 .bash_profile -rw-r--r-- 1 root root 124 2007-02-12 20:48 .bashrc -rw-r--r-- 1 root root 500 2007-05-23 19:45 .emacs drwxr-xr-x 3 root root 4096 2009-01-06 16:21 .kde drwxr-xr-x 2 root root 4096 2009-01-06 16:08 .xemacs -rw-r--r-- 1 root root 658 2007-03-06 01:54 .zshrc .bash_logout,.bash_profile,and .bashrc contains the user specific options and aliases which is used by the bash shell each time the bash shell starts up..kde contains the kde desktop application options. The .bashrc file can be used by user to customize user's shell environment. The sample .bashrc file is # .bashrc # Source global definitions

71

if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions If the file /etc/bashrc exists then the file is executed./etc/bashrc contains the global options to the bash shell. The options in /etc/bashrc apply to all users using bash shell. The values in /etc/bashrc can be overridden using the .bashrc file. Much information needed to create user account is taken from the file /etc/profile. It sets the hostname, histsize of the shell, shell environment variables like PATH,USER,LOGNAME,and INPUTRC etc. The /etc/profile file also looks in the directory /etc/profile.d for the files which contain aliases and environment variables for use by the user. General format The default values used while creating a user account can be overridden by passing those values from shell. The format of useradd command is useradd -c “comment” -d home directory path -g group name -p password -s shell -u userid [root@localhost ~]# useradd -c "new user" -d /home/user2 -g user1 -s /bin/csh user2 When a user account is created an entry corresponding to the user name for example user1,user2 is created in /etc/passwd and /etc/shadow file. An entry is also added when a new group is created for example user1. Below is the content of /etc/passwd filesystem user1:x:502:502::/home/user1:/bin/bash user2:x:503:502:new user:/home/user2:/bin/csh /etc/shadow file contains the user name and the encrypted password of the user. The entry of /etc/group file is user1:x:502: Changing default values

72

The command useradd -D -b home directory name -s shell -g group can be used to change the default values used while creating new user account. Below command is used to change the shell to /bin/tcsh from /bin/bash [root@localhost ~]# useradd -D -s /bin/tcsh [root@localhost ~]# useradd -D GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/tcsh SKEL=/etc/skel CREATE_MAIL_SPOOL=yes
5.3.Modifying user account

usermod command is used to modify the user information. The general format of usermod command is usermod -c “comment” -d home-directory-name -g group-name -l login-name -s shell -u user-id
5.4.Deleting user account

userdel command is used to delete the user account. userdel user-name this deletes the entry corresponding to the user name from /etc/passwd file and /etc/shadow. To delete the home directory along with the account following command is used userdel -r user-name

73 5.5.Group Administration

5.5.1.Adding New Group groupadd command is used to add new group. If no options are specified on the command line default values are used. The format of groupadd command is groupadd -g group-id groupadd-r option Second command is used to add administrative groups. Administrative group and users have ids below 500.The file /etc/gshadow is used to store the group's password. 5.5.2.Modifying group information groupmod command is used to modify existing group information. groupmod -g new-group-id -n new-group-name. 5.5.3.Deleting group groupdel command is used to delete group. It deleted the entry of group from the files like /etc/group and /etc/gshadow
5.6.Using User Manager

The user manager utility is used to perform all the tasks discussed above using the graphical interface. To invoke the user manager utility enter the below command in terminal [root@localhost ~]# system-config-users

The below panel is generated.74 It can be used to add .modify and delete user and group information. . To modify existing user information click on the user name and then use the properties button. The information can be edited on the below panel and changes can be saved.

The below window is thrown and the information of new user can be entered.75 To create a new user. . click on the add user button.

passwd user-name if the user-name is not mentioned then it is assumed that user wants to change root user's password.Space Usage The du command is used to check the space used by the files and subfolders of a directory. The command prompts for root user's password and then for the new password. The format of the command is du folder-name if the option -h is used the command displays the size of files and subfolders in K (kilobytes).1. The password needs to be entered twice. 5.76 5.M(megabytes). The size of files contained in a subfolder is also displayed . .Changing user password The password of user can be changed by entering the command passwd.7.and G (gigabyte) form.6.

SYSTEM ADMINISTRATION 6.0K /home/user1/. .kde/Autostart 12K /home/user1/. The format of the command is df filesystem If the filesystem option is not used on command line then df displays the amount of space available in all the mounted filesystems of the system.1. [root@localhost ~]# df Filesystem /dev/sda11 /dev/sda12 /dev/sda10 /dev/sda9 /dev/sda8 tmpfs 1K-blocks Used Available Use% Mounted on 9920592 2390424 7018100 26% / 4956284 141220 4559232 4% /opt 9920592 4643932 4764592 50% /usr 16479668 384520 15244508 3% /home 101086 383428 18499 77368 20% /boot 0 383428 0% /dev/shm 6.xemacs 44K /home/user1 The df command is used to display the amount of space available on a filesystem.0K /home/user1/.77 [root@localhost ~]# du -h /home/user1 8. During installation the root account is must to create.Overview The root user is can perform all the tasks on the system. The root user is administrator account on Red Hat Linux.kde 8.

Outside that terminal he won't have the privilege of user1). The user id and group id of the root user is 0.78 6.2.Getting Administration Rights 6. The format of the su command is su – user-name If user2 has entered this command in terminal then he will have the privilege of user-name (he can perform all actions which user1 can perform using the terminal in which he entered the above command.The su command The su command is used to change the user id and group id of the user issuing the command to that of user mentioned on the su command. There are some administrative accounts which are automatically created by Linux but the user accounts cannot be used to log into the system as they are defined with the /sbin/nologin.2./sbin/nologin refuses login from the user. The user accounts are listed in the file /etc/passwd.Using the su Using the su command a user can also get privilege of root user but the user will be prompted for the root user's password.2.1. Te user and group ids below 500 are reserved for the administrative users. If he enters the password correctly then he gets the privilege of root user else he won't get the privilege. 6. Below is the sample /etc/passwd file root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin .2.

/sbin/parted. /usr/bin/yum ## Services Cmnd_Alias SERVICES = /sbin/service.Other uses must have given privilege to use those commands. /usr/bin/rfcomm.daemon. /sbin/iptables. For example ## Command Aliases ## These are groups of related commands. /bin/mount. /sbin/sfdisk.79 The users bin.3. Only root user can use the commands .2.1./sbin and /usr/sbin directory The directory /sbin and /usr/sbin contain administrative commands. /usr/bin/up2date.. /bin/umount .2.lp. /usr/bin/net.and mail are defined with /sbin/nologin so those user accounts cannot be used to login into system.4. /sbin/ifconfig.adm. /usr/bin/wvdial./etc/sudoers file The file /etc/sudoers file defines group of similar command under an alias name. /sbin/dhclient. The root user must be created on a Linux machine and all other user accounts in above sample are automatically created.3. /sbin/chkconfig ## Updating the locate database Cmnd_Alias LOCATE = /usr/sbin/updatedb ## Storage Cmnd_Alias STORAGE = /sbin/fdisk. /sbin/iwconfig. 6. ## Networking Cmnd_Alias NETWORKING = /sbin/route.. /sbin/mii-tool ## Installation and management of software Cmnd_Alias SOFTWARE = /bin/rpm. 6.Administrative commands 6.2. The privilege can be granted by the root user only. /sbin/partprobe. /bin/ping.

SERVICES. The explanation is any user can use mount command to view the filesystems currently mounted on the system but only root can use it to mount a filesystem.80 At first command aliases are defined in the /etc/sudoers file. STORAGE is defined for the commands /sbin/fdisk. SOFTWARE. /sbin/umount /mnt/cdrom ## Allows members of the users group to shutdown this system # %users localhost=/sbin/shutdown -h now ./sbin/sfdisk./bin/mount. STORAGE. DRIVERS ## Allows people in group wheel to run all commands # %wheel ALL=(ALL) ALL ## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL ## Allows members of the users group to mount and unmount the ## cdrom as root # %users ALL=/sbin/mount /mnt/cdrom. # %sys ALL = NETWORKING. In above case the command mount is in directory /bin. LOCATE. software. Then in the file /etc/sudoers different groups are defined with different levels of privilege. ## Allow root to run any commands anywhere root ALL=(ALL) ALL ## Allows members of the 'sys' group to run networking./bin/umount. ## service management apps and more. DELEGATING. PROCESSES. Since normal users can not use commands in /sbin directory that is why mount command is in /bin directory.

. The format of the command is .adm. Case 2 if owner and group both are specified then the file owner is changed to owner and file group is changed to group.bin.3. Case 3 if owner is not specified but group is specified then the group of file is changed to that of group case 4 if owner and group both are not specified then nothing happens. Then open the file /etc/group and add the user jack on line corresponding to the group sys root:x:0:root bin:x:1:root.jack adm:x:4:root. Now the user jack can use the command rpm to install any software prefixing the command rpm with sudo for example sudo rpm -i vlc 6.daemon daemon:x:2:root.adm. The general format of the command is chown owner:group file-name case 1 if only owner is specified but group is not specified then the file owner is changed to owner and the file group is changed to that of login group of owner.Changing owner and group The chown command is used to change the owner or/and group of a file.bin. Suppose a user jack is to be given the privilege of group sys then uncomment the line #%sys using the /sbin/visudo command. The chgrp command is used to change the group of a file.bin.daemon sys:x:3:root.81 The file /etc/sudoers should be edited using the /sbin/visudo command.daemon The entry jack is made in /etc/group file.

82 chgrp group-name file-name changes the group of file-name to group.Monitoring System performance 6.4. . The system administration can be divided into several parts z z z z z z Managing user accounts (creating.4.modifying user and group accounts) (discussed before) managing services to be run in a runlevel (discussed before) Updating existing software and installing new software (discussed before) Monitoring system performance Automating tasks Managing and tuning kernel 6. To start the system monitor utility follow these steps on desktop go to system--> then go to administration-->then click on System Monitor.Using System Monitor The system information can be viewed using the System Monitor utility.deleting.1.

A user can also choose which information he/she wants to see for the processes using the Edit->preferences option of the menu . On the preferences window the user can choose the time interval after which the information is to be refreshed. and also change the priority of the process. Kill Process. Using the filesystems tab the filesystems currently mounted on the system are displayed. Using the Edit menu option the user can Start Process. End Process. View Process. The user can click on a process and then can end process by clicking on the End Process button.83 On the processes tab the user can see the listing of all the processes of the system at that moment. Using the view menu option user can choose the option to see only processes started by him (his process) or all process or active processes on the system. .

3. 6. The priority of the process. no of processes sleeping. the command used for invoking the process. no of zombie processes usage detail of swap memory usage detail of RAM memory the information about the processes of the system like PID (process identification number ).84 6.4.Using w command The w command is used to view the users who are logged on the system and the processes run by them.Other commands There are several commands available in Linux which can be used to view the system information.Using top The top utility is started by typing the top command in the terminal window.% memory usage.3.percent CPU usage.2.4. It also shows the time for which the system is running and the load average of the system. no of processes active.4.1. . The top command gives various information about the system z z z z z z number of users currently logged on load average of the system total number of processes. 6.

Load average of the system and number of users logged on the system currently. cache memory.0 pts/1 :0.00s find /home 23:08 1. [root@localhost ~]# uptime 23:17:44 up 32 min.10.85 [root@localhost ~]# w 23:17:20 up 32 min. 0.00s w 6.00s 0. 0. Under the io heading blocks received from block devices(bi).3.Using uptime The uptime command is used to show the time for which system is running. Under the memory heading it displays amount of virtual memory used(swpd).3.03s 0. 2 users. 0. under swap heading amount of memory swapped in from disk(si) and amount of memory swapped out(so). 2 users.4.19.blocks sent to block devices(bo). Under the CPU heading the CPU related information.---swap-r b swpd free buff cache -io---.2. 0. [root@localhost ~]# vmstat procs --memory----.Using vmstat The vmstat command is used to displays the virtual memory statistics.3.04s 0.no of processes in sleep(under sub heading b).0 LOGIN@ IDLE JCPU PCPU WHAT 22:48 10:07 0.-----cpu-----si so bi bo in cs us sy id wa st 0 0 0 218808 20736 258632 0 0 144 38 114 435 7 1 89 2 0 Under the proc heading it displays the no of processes waiting for run time (under r sub heading). load average: 0. .19 USER TTY FROM root root pts/0 :0. buffer memory.22.21.19 6.--system-.4. load average: 0.free memory.

4.5. [root@localhost ~]# free total Mem: 766860 used 550340 266068 0 free 216520 500792 shared 0 buffers 22476 cached 261796 -/+ buffers/cache: Swap: 819272 819272 6. .4.4.Using free It gives the amount of free and used memory space of the system.3.4. If the pid is 1 then processes with pid >1 re signaled if pid is > 1 then the process with that id is signaled.86 6.Log information The user can see the log information of the system using the System Log viewer . The format of the kill command is kill -s signal-name pid z z z if the pid is 0 then all process in current process are signaled.Using kill The kill command is used to end a process.3.The system log viewer is launched from desktop using SYSTEM-->ADMINISTRATION-->SYSTEM LOG. 6.

The * is replaced by the output of uname -r command. For example the file /var/log/boot.87 On the left hand side the list of log files is displayed. The hardware drivers are maintained as the modules of the kernel.kernel Modules All the modules configured into the kernel are located in the directory /lib/modules/*/. The content of the directory is [root@localhost 2. Clicking on the cron entry on left displays the log information about the jobs scheduled using the cron utility on the right panel of the above utility.and the information about the drivers can be viewed.6. The hardware drivers are installed to interface with the hardware.networking modules.deleted.2. The drivers can be inserted.symbols . User can click on the name of files to view the log information. 7.Overview Linux kernel is heart of Linux operating system. The log information about the cups can be seen by expanding the tree under the cups entry on the left panel of the utility.dep modules.21-1.KERNEL SERVICES AND CONFIGURATION 7. 7.1.fc7]# ls build modules.3194.log contains the log information of boot time.

fc7/kernel/drivers/char/drm/i915.isapnpmap modules.pcimap modules.inputmap modules. 7.3194.6.1.88 extra modules.ko GPL and additional rights description: Intel Graphics .scsi updates modules. For example to view information about the driver i915 of above case use the command [root@localhost ~]# modinfo i915 filename: license: /lib/modules/2.2.networking contains the name of the drivers for the network devices.seriomap weak-updates The kernel subdirectory of the above output contains the drivers currently part of the kernel. The file/proc/module contains the listing of modules currently loaded into the kernel.Modules Loaded into Kernel To view the modules currently loaded into the kernel use the command lsmod.21-1.libata modules.ofmap kernel modules.ccwmap modules. [root@localhost ~]# lsmod Module i915 drm Size Used by 25793 3 78037 4 i915 7745 1 ipt_MASQUERADE iptable_nat nf_nat 11461 1 22125 2 ipt_MASQUERADE.alias modules.ieee1394map modules.usbmap source modules.iptable_nat The modinfo command can be used to view information about any of the loaded module into the kernel. The file modules.

2. The module dependencies are listed into the modules.ko .and remove a module from the kernel. The user has to insert the driver module into the kernel.ko: /lib/modules/*/kernel/lib/zlib_deflate/module1.2. 9274BE575209BE18EC18D84 drm 7. If module2 is dependent on module1 then the file contents will be /lib/modules/*/kernel/crypto/module2. The format of the insmod command is insmod file-name if the file-name is – then the module is taken from the standard input. The format of the command is rmmod module-name 7.2. The modprobe command inserts other modules which are dependent on the module being inserted using the command. Inc.ko /lib/modules/*/kernel/lib/zlib_deflate/module1.Using modprobe command The modprobe command can be used to insert a module into kernel .Inserting module into kernel Sometimes a user might need to install a hardware device if the hardware driver is not part of the kernel.4.2. The insmod command is used to insert a driver module into the kernel.dep file located in the directory /lib/modules/uname -r/.3. Let module2 is module dependent on module1 then if the command modprobe module1 is executed then the modules module1 and module2 both are inserted as the module2 is dependent on module1. 7.89 author: srcversion: depends: Tungsten Graphics.Removing module from kernel The rmmod command is used to remove a module from the kernel.

The sample modprobe.2.3. The option options define the options which will be used when the module is inserted into the kernel.d. 7. In above case if the command modprobe binfmt-0000 is run then the command /bin/true is executed. The install option is used to run the commands defined after the module name. The command ps aux is used to display all the processes currently running on the system. 7. The format of the renice command is renice priority -p pid of process -u user-name -g group-id . The command modprobe -r module-name is used to remove the modules from the kernel.1. There are many options available for the ps command.conf file is alias eth0 via-rhine options snd-intel8x0 index=0 install binfmt-0000 /bin/true The option alias defines an alternate name eth0 for the via-rhine.Changing priority of process The renice command is used to change the priority of the running process.The ps command The ps command is all purpose command to get information about the processes running on the system. The modprobe command looks in the directory /lib/modules/*/ and also for the configuration file /etc/modprobe.90 : In above example the modules module1 and module2 are listed using fully qualified path name.Process and Kernel Information 7.3.conf (if the file is present) and in the directory /etc/modprobe. But if the command insmod is used then the module1 is only inserted.3. The dependent module is on left side and the independent module is on the right side of the semicolon.

. ...2-12)) #1 SMP Wed May 23 22:35:01 EDT 2007 BIOS-provided physical RAM map: sanitize start sanitize end copy_e820_map() start: 0000000000000000 size: 000000000009fc00 end: 000000000009fc00 type: 1 ..3...2 20070502 (Red Hat 4.1. [root@localhost modprobe..... ....3.21-1..... The format of the command is dmesg -c -n level The -c option clears the kernel ring buffer after printing -n option sets the level of messages which will be printed..91 If the renice command is issued on user then the process priority of all processes of the user changes and if issued for group then the process priority of all processes owned by the group is changed and if issued for process id then the process priority is changed.. .1.d]# dmesg -c Linux version 2. If the value of level is 1 then the serious error messages are only printed..com) (gcc version 4.redhat..Using dmesg It is used to examine and print the boot up message.fc7 (kojibuilder@xenbuilder4. After the execution the kernel ring buffer gets clear now if the command dmesg is run again then there will be no output.fedora.6... The user can use the command to capture the messages... 7...phx.... is the output of command.3194.

crit # Save boot messages also to boot. syslogd supports the system logging.cron.authpriv.conf file # Log all kernel messages to the console.* /var/log/secure /var/log/messages # Log all the mail messages in one place. The file defines the files where different system messages will be written.* /var/log/boot.* /dev/console # Log anything (except mail) of level info or higher. Below is the sample /etc/syslog.* # Log cron stuff cron.log /var/log/spooler . authpriv.4.conf. It uses the configuration file /etc/syslog.news. mail.mail.3.none.info. # Logging much else clutters up the screen.92 7.log local7.* /var/log/cron -/var/log/maillog # Everybody gets emergency messages *. The syslogd and klogd comprises the sysklogd package.emerg * # Save news errors of level crit and higher in a special file. # Don't log private authentication messages! *.news.none. #kern.Syslogd The syslogd supports the system logging as well as kernel message trapping. uucp.none # The authpriv file has restricted access.none.

The /etc/at.err /var/log/news/news.93 # # INN # news.deny is checked to see the users who cannot use the at command.allow file is first checked for the user name who can use the at command if the file is not present then the file /etc/at. There are two files which determine which users can use the at command. If the file is not present then klogd uses a system call to obtain kernel messages. The cron job messages are logged in the file /var/log/cron The file name can be changed by the root user if root wants to log the information into different file.notice In the above file /var/log/secure file is defined to contain the authorization and security related messages.=crit news.4. The klogd captures the kernel messages. The /etc/at. The at command cannot be used by all the users.Automating Tasks -- A user can schedule to run a job at a specified time.allow lists the name of the users who are allowed to use the at command.=err news.deny command lists the name of the users who can't use the at command. For example the PAM (Pluggable Authentication Module) related messages are logged in this file. 7. The at. If .batch. The process id(PID) of the klogd daemon is defined in the file /var/run/klogd.pid. The file /etc/at. The source for the kernel message is the /proc/kmsg file. The root user can use the at command.4.notice /var/log/news/news.1. 7.and cron facilities are used to schedule a job at a specified time.Using at The at command is used to schedule a job at a time and the atd daemon runs the job scheduled by the at command. The klogd daemon always runs on a running system and traps any messages which kernel generates.crit /var/log/news/news.

the jobs which have = on right are jobs currently executing.2.Using at prompt . 7.94 both the files are not present then only root user can run the at command.using pipe A list of command can be scheduled using pipe for example [root@localhost ~]# ls -la | at now+5min job 1 at Fri Jan 16 22:39:00 2009 to schedule a number of commands write each command separated by semicolons. The at -l command is used to list all the scheduled jobs(if root user runs this command then scheduled job of all users is displayed).4.4.if invoked by other users the scheduled job of only that user is displayed. and the jobs with b on right are in batch queue. The sample format of the /etc/at.1. The three ways in which jobs can be scheduled are 7.allow or /etc/at. The jobs which are listed have an on right are in at queue.1.deny is jack mark The user names should be one in a line and there should not be whitespace in the user name. The command at time-specification is used to schedule the job at that time. [root@localhost ~]# atq 3 2 1 4 Fri Jan 16 22:44:00 2009 a root Fri Jan 16 22:49:00 2009 a root Fri Jan 16 22:39:00 2009 = root Fri Jan 16 23:03:00 2009 a root at -m sends mail to the user when the job completes even if the job has no output.1.

[root@localhost ~]# at -l 4 3 2 1 Fri Jan 16 22:46:00 2009 a root Fri Jan 16 22:44:00 2009 a root Fri Jan 16 22:49:00 2009 a root Fri Jan 16 22:39:00 2009 = root use atrm to delete job 4. Same as at -l atrm – command is used to delete a scheduled job. atq – The atq command is used to list the scheduled job.4. 7. In above example ps and du both are scheduled.Using file The at -f filename time-specification command is used to give the command using the file filename.3. .1.95 The at prompt is presented to the user if at time-specification is entered for example [root@localhost ~]# at now+20min at> ps at> du at> <EOT> press CTRL+D to come out of at prompt. The contents of the file(commands in the file name is executed at time specification). The format is atrm jobid to delete the job 4 in below case use the command at -l gives listing of all scheduled jobs.

The job runs when the load average of the system is below . [root@localhost ~]# atq 3 2 1 Fri Jan 16 22:44:00 2009 a root Fri Jan 16 22:49:00 2009 a root Fri Jan 16 22:39:00 2009 = root The outputs of the commands are mailed to the owner of the job after successful completion of the job. The batch command invokes the at command prompt [root@localhost ~]# batch at> df at> du at> <EOT> job 5 at Fri Jan 16 22:58:00 2009 The scheduled jobs which are submitted using the at command and batch command are spooled in the directory /var/spool/at.The batch scheduled job is run by the atd daemon.4. The files contain the information about the commands along with the environment under which the commands were scheduled.2.Using batch command The batch command is used to schedule a job. 7. The sample file for the commands scheduled using the batch command is #!/bin/sh # atrun uid=0 gid=0 # mail root 0 .8.96 [root@localhost ~]# atrm 4 the command atq gives listing of all scheduled jobs.

[root@localhost at]# crontab -e no crontab for root .. A text editor can be used to create a file-name. If both files don't exists then only root user can use cron facility..localdomain..97 umask 22 SSH_AGENT_PID=2866. The format of the file is 5 23 * * * ls -la /usr/local ...deny lists the user names which are not allowed to access the cron facility. ....3...cron file .deny file is searched... The root user can access cron facility.../etc/cron.. The /etc/cron. The users can be given access to cron using two files... The name of the file is same as the name of the user.Using cron The cron facility is also used to schedule the jobs.. The crontab -e command is used to create a crontab file. df du 7..allow file is first searched by the cron facility if the file does not exists then the /etc/cron.. export HOSTNAME DESKTOP_STARTUP_ID=. The /etc/cron.4..using an empty one crontab: installing new crontab The crontab file is created in the /var/spool/cron directory.. export SSH_AGENT_PID HOSTNAME=localhost. export SHELL . export DESKTOP_STARTUP_ID SHELL=/bin/bash. The crontab jobs are executed by the cron daemon..allow file is used to list the users who can use the cron facility...

After the time fields the command field follows.Tue format is also used.Sun.mar.daily .98 z z z z z z z The first field is minute (0-59) second field is hour (0-23) third field is day of month(0-31) fourth field is month (0-12).hourly 02 4 * * * root run-parts /etc/cron.4. The cron daemon reads the /etc/crontab file.Feb. The command crontab -l is used to list all the crontab jobs. The sample /etc/crontab file is SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron./etc/crontab The file /etc/crontab file is system crontab file.Jan. [root@localhost at]# crontab -l 5 23 * * * ls -la /usr/local The crontab -r command is used to delete the crontab jobs.0 and 7 both are used for Sunday The field value * in the fields denotes all possible value. fifth field is day of week(0-7).3. [root@localhost cron]# crontab -r [root@localhost cron]# crontab -l no crontab for root 7.1.Mon.Apr format is also used.

/etc/cron./etc/cron. The SHELL parameter sets the shell to /bin/bash.Overview The web server accepts the Hyper Text Transfer Protocol(HTTP) requests and sends a response to the client. The mail is done to root user (MAILTO parameter).3.1.99 22 4 * * 0 root run-parts /etc/cron.Starting Apache The user should check whether the Apache web server is enabled in the runlevel or not.4.weekly 42 4 1 * * root run-parts /etc/cron. 8. The apache web server source code is freely downloadable. If the service is not enabled then the command chkconfig httpd on is used.2. If the service is enabled in a runlevel use the command service httpd start to start the Apache Web Server. [root@localhost ~]# service httpd start Starting httpd: [ OK ] After starting the service check the working of Apache web server by typing the address http://localhost .monthly are executed by the cron daemon.weekly.and 5.hourly. The runparts define the time when the scripts in the directories /etc/cron. 8. The apache web server is the most widely used web server.daily.monthly The environment of the sub shell is set using this file.WEB SERVER 8. The chkconfig .-list option is used to check whether the Apache web server is enabled or not [root@localhost ~]# chkconfig --list httpd httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off The httpd service (the daemon corresponding to the Apache web server) is enable in runlevel 2.and /etc/cron.

/. [root@localhost httpd]# ls -l total 36 drwxr-xr-x 2 root root 4096 2009-01-17 10:01 conf drwxr-xr-x 2 root root 4096 2009-01-17 10:29 conf.and PHP)../var/run The conf directory contains the main Apache configuration file httpd.Perl.d lrwxrwxrwx 1 root root 27 2009-01-06 16:15 modules -> .. The conf. The logs directory is symbolic link to /var/log/httpd directory which contains the httpd log information .d contains the configuration files relating to the languages( like Python./usr/lib/httpd/modules lrwxrwxrwx 1 root root 13 2009-01-06 16:15 run -> ../.. The directory contains main configuration file. The Apache web server configuration directory is /etc/httpd. sub directories and symbolic links to other directories.conf.database(Mysql) and the authorization modules../var/log/httpd drwxr-xr-x 3 root root 4096 2009-01-06 16:20 modsecurity.100 in the address bar of the Mozilla Firefox (web browser).d lrwxrwxrwx 1 root root 19 2009-01-06 16:15 logs -> ./..

3. 8. # Timeout: The number of seconds before receives and sends time out. The additional subcomponent configuration files reside in the /etc/httpd/conf.Main Configuration file /etc/httpd/conf/httpd.pid file which contains the PID of httpd daemon.d directory.101 the modsecurity directory contains files relating to the security. z z z Configuration directives for Apache web server process as whole.conf file is main configuration file for Apache web server. The run directory contains the symbolic link to /var/run directory which contains the httpd. 8.1. ServerRoot "/etc/httpd" The server root names the main directory where all the server information is kept.3. Configuration parameters for the main server (not virtual hosts but these parameters also set default values for all virtual hosts) Settings for virtual hosts. and protocols related. . # ServerRoot: The top of the directory tree under which the server's # configuration.Global Environment Configuration In the global environment configuration section the following attributes are set # Don't give away too much information about all the subcomponents # we are running. The modules directory is symbolic link to the /usr/lib/httpd/modules directory which contains the library files for the Apache web server. Comment out this line if you don't mind remote sites # finding out what major optional modules you are running ServerTokens OS This hides the additional subcomponent modules from the remote sites. error. and log files are kept. http policy. The file is divided into three parts.

d". User apache Group apache .Perl.102 # Timeout 120 The server will wait for 120 secs for a response and after that the connection will timeout.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule auth_digest_module modules/mod_auth_digest. # Load config files from the config directory "/etc/httpd/conf. The directory contains the configuration files for PHP.and Mysql etc. # Include conf.conf Loads the additional component support component files from the /etc/httpd/conf.Python.so The LoadModule loads the modules from the /usr/lib/httpd/modules directory (the directory /etc/httpd/modules is a symbolic link to above directory). # Listen: Allows you to bind Apache to specific IP addresses and/or # ports. in addition to the default Listen 80 In this case apache listens to port number 80.d directory.d/*.The port number can be changed to any port number by the user. # Dynamic Shared Object (DSO) Support # LoadModule auth_basic_module modules/mod_auth_basic.

# AccessFileName . By default. 8. # DocumentRoot: The directory out of which you will serve your # documents. The user account apache and the group account apache are automatically created (user don't create the accounts).103 The httpd server runs under the user apache and group apache.html file and kept it in this directory and open the address http://localhost using any web browser then the contents of index. but # symbolic links and aliases may be used to point to other locations. where problems with the server should be # e-mailed. # AccessFileName: The name of the file to look for in each directory # for additional configuration directives.The user can set this to his/her user-name and group-name.html file will be displayed. ServerAdmin root@localhost In case of any information server wants to give then the information is send to the email address mentioned in the directive ServerAdmin.htaccess # .3. See also the AllowOverride # directive. # DocumentRoot "/var/www/html" This is the directory where the user will place the contents or files he/she wants to get handled by the web server. The email address can be edited if user wants so.2. all requests are taken from this directory. For example if you create an index.Main server section # ServerAdmin: Your address.

# alert. error. notice. crit.htaccess and .ht"> Order allow. Uncomment the following lines to # enable the proxy server: # <IfModule mod_proxy. emerg. The contents of htaccess file should not be visible to the clients who are accessing the server (people who are using web browser to view contents or pages on the server). warn. The line Deny from all sets the access level that no user can be able to see the file .htaccess file won't give anything).104 # The following lines prevent .c> ProxyRequests On . # LogLevel: Control the number of messages logged to the error_log.htpasswd files from being # viewed by Web clients. # Possible values include: debug. # LogLevel warn The loglevel defines the messages which are to be logged. # <Files ~ "^\.htaccess (the address in the web browser address bar corresponding to the .deny Deny from all </Files> The . # Proxy Server directives.htaccess file is used to control access to the directory. info. In above case the warning messages will be logged in the file.

com </Proxy> The apache web server acts as proxy server if the above lines are uncommented. # See http://httpd.example.html for more details.org/docs/2.allow Deny from all Allow from .3. # # To enable a cache of proxied content.2/mod/mod_cache. # <IfModule mod_disk_cache.Virtual hosts section # .c> CacheEnable disk / CacheRoot "/var/cache/mod_proxy" </IfModule> # If the following lines are uncommented then the apache web server servers as a cache server.3. 8. The permission level set for the proxy server in above case is the access is denied from all except .105 # <Proxy *> Order deny. The root directory for the cached files is /var/cache/mod_proxy. uncomment the following lines.example.com.apache. In the above example if the Proxy Requests directive is OFF then apache will act as a cache server.

com-access_log common </VirtualHost> The virtual host section is used to configure virtual hosting which supports more than one domain using a single web server system.com is fetched.example.example.com ServerName dummy-host.com.106 # Use name-based virtual hosting. 8. Each and every apache directive can be used within the VirtualHost.example.example. So if a user requests a document in the domain ServerName then the documents or files from the directory /www/docs/dummy-host.4.com ErrorLog logs/dummy-host. # #NameVirtualHost *:80 # <VirtualHost *:80> ServerAdmin webmaster@dummy-host. In the following example the ServerName is set to dummy-host.example.com DocumentRoot /www/docs/dummy-host.example.example. To invoke the utility enter the below command in terminal [root@localhost conf]# system-config-httpd .com-error_log CustomLog logs/dummy-host.HTTP Server Configuration The HTTP Server Configuration is used to configure the HTTP server.

107

The main tab is used to configure the server name and web master email address to add the ip address click on the add button.

The new address and the port can be added on the panel displayed. The user can choose to listen to all address option . Use the virtual host tab to configure the virtual host.

108

The add button is used to add a new virtual host and the edit button is used to edit the properties of the virtual host highlighted on the left part of panel. the delete option can be used to delete the virtual host. If the user choose to edit the properties of a virtual host the below panel is displayed

109

The user can use the tabs on top of the panel to configure the options. The general properties like virtual host name ,document root directory, web master email address can be configured on the general tab. The server tab on the main panel is used to configure the server lock file location, core directory where all the configuration files of the server will be kept, and the location of the pid file. The user and group under which the apache server is running can also be edited.

110

The performance tab is used to configure the parameters which help in improve the performance of the apache web server. Parameters like connection timeout period ,maximum number of requests per connection are set here. These options are impact the performance of the apache web server.

Network options Under the network options the user can define the socket addresses.1.2. 9. a Domain Name System lookup program dnsserver and some other modules for authentication and management tasks.Configuring Squid The directory /etc/squid contains the configuration files for squid server.Overview It is high performance proxy caching server for web clients with supporting HTTP. http_port define the socket addresses where Squid will listen for HTTP client requests. The socket address can be defined in three forms: z z port alone hostname with port .111 9.FTP.1.SQUID SERVER 9. The squid configuration file is divided into sections 9.and Gopher data objects. Squid consists of a main server program squid.conf. The main configuration file for the squid server is /etc/squid/squid.2.

112 z IP address with port # Squid normally listens to port 3128 http_port 3128 9. 9.Log File and Cache directory section This section defines the directory which will be used as a cache directory. For example hierarchy_stoplist cgi-bin ? means that when the URL consists of certain string of characters then the original server handles the request.out store. For example #Default: cache_mem 8 MB This sets the cache size (RAM memory used to store the in transit objects that is objects that are in use). 9.hot objects(objects that are used often).3.log cache.log .2.log squid.2.4.and negative cache objects(recent failed requests).2.Neighbor selection algorithm option Under this section the user define the mapping of rules for the requests and neighbor which will be called if a request obeys the rule.2. #Default: cache_dir ufs /var/spool/squid This section also defines the format of the squid log files. The cache dir /var/spool/squid contains the following files [root@localhost squid]# ls access.Cache size options This section defines the options which control the cache size and swap memory used to handle the objects.

The acl tag is used to define access control.1/255.0.255 acl to_localhost dst 127.0. By default no outside client is allowed to access the contents.0.255.0.0/0. 9.5.0.255.pid.0 acl manager proto cache_object acl localhost src 127. the form of acl tag is acl name type string or file below is the example of acl tags from /etc/squid/squid.0/8 acl SSL_ports port 443 acl Safe_ports port 80 acl Safe_ports port 21 acl Safe_ports port 443 acl Safe_ports port 70 acl Safe_ports port 210 # http # ftp # https # gopher # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 acl Safe_ports port 488 acl Safe_ports port 591 acl Safe_ports port 777 # http-mgmt # gss-http # filemaker # multiling http acl CONNECT method CONNECT .0.2.Access control section This section defines the access control.0.113 The squid pid is stored in the file /var/run/squid.conf file acl all src 0.0.

The configuration file for cache manager is /etc/squid/cachemgr. The manager can access the contents as defined by the second line. The configuration file controls which servers will be managed by the cache manager. This entry can be edited to add more number of clients who can access the content. #Default: cache_effective_user squid The above line define that the effective user of the squid is squid user. #Default: cache_mgr root Above line define that root user is mailed in case the cache dies.Administrative parameters The administrative parameter defines the user under which squid will run . The localhost name is given to the loopback interface.cgi script # . The next lines define different ports with a name for example port 443 with name SSL_ports.the user receiving mails in case cache dies etc.3. http_access allow localhost http_access deny all the above lines define that the localhost can only access the http content all others are denied.114 the first line gives name all to all the addresses. 9.conf.Cache Manager The cache manager is a cgi utility for displaying information about the squid http proxy process as it runs. 9. # This file controls which servers may be managed by # the cachemgr.6. Squid is an administrative user account created automatically.2.

Squid Daemon The squid daemon receives the configuration information from the squid daemon configuration file /etc/sysconfig/squid. allowing # * and other shell wildcards. If you most likely will not to have an # internet connection when you start squid. # # hostname is matched using shell filename matching. localhost In the above example the localhost server is managed by the cache manager. :* or :any matches # any port on the target server.115 # The file consists of one server per line on the format # hostname:port description # # Specifying :port is optional. 9. If not specified then # the default proxy port is assumed.4.cgi. The sample format of the file is # default squid options # -D disables initial dns checks. Should not be necessary # most of the time. uncomment this SQUID_OPTS="-D" # Time to wait for Squid to shut down when asked. SQUID_SHUTDOWN_TIMEOUT=100 . The cache manager can be invoked by typing the address http://server-name/cgibin/cachemgr.

Alternatively the command [root@localhost squid]# squid -k reconfigure causes the squid to read the configuration file again.Starting NFS service To start the NFS service enter the below command in the terminal [root@localhost ~]# service nfs start Starting NFS services: Starting NFS quotas: Starting NFS daemon: Starting NFS mountd: [ OK ] [ OK ] [ OK ] [ OK ] .Overview In organizations it is common that the files are kept at one server. The access to files is defined by rules set at the server machine.d/squid start command.NFS SERVER 10. Starting squid: . [ OK ] [ OK ] if the squid daemon is not running then use /etc/init.116 After making changes in the configuration file restart the squid daemon if the squid daemon is already running using the command [root@localhost squid]# /etc/init. The files are accessible by some computers on the intranet of the organization. 10.2.1.d/squid restart Stopping squid: . NFS is example of a file server. 10.

255.3.0 The wildcard characters *.12.example. For example to give access to mynis group add entry . 10.1/255. The options define security levels that is who can access and which users can access the directory.? can also be used.example.117 10.3. The combination of lp address and hostname can also be used. The NIS group can be preceded by the @ of sign before the NIS group name. One directory entry is done on one line. ? matches any one character and * matches any number of character.123.168.com The access can also be defined in terms of the NIS group.com but if the access should be restricted to computers with first name of 5 characters use files ?????.1.255. The format of the entry is hostname1 hostname2 hostname1 hostname2 165. The format of the /etc/exports file entry is directory-name host-name(options) #comments directory name is the name of the directory which is shared with other computers on network.1.87 All the hosts from a particular network can also be entered using the ip address/net mask format. So for example if all the computers in the domain example.Sharing Folders The file /etc/exports contain the name of the folders which are to be shared.Format of hostname Multiple hostnames or lp address can be entered separated by blank. 192.com should be allowed access to directory files then enter the entry files *. The host names are the computers which have right to access the files.

root_squash) In the first entry the directory /home/vishnu is made accessible by each computer (indicated by *) and options sync.and root_squash. async – It responds to the request before the changes made by the request are made permanent (that is changes are written to disk).all_squash) /home/user1 ?????.So this option improves performance but increases chance of inconsistencies .118 @mynis 10. Other option is no_all_squash which causes no mapping to be done.com with options async.example.insecure. The second entry makes the directory /home/user1 accessible to computers with five letter name in domain example.secure and all_squash is used. The default value of anonymous uid and gid is 65534.rw.insecure. Below is the sample /etc/exports file /home/vishnu *(sync.secure.The anonymous uid and gid value can be changed by using options anonuid and anongid. The other option is ro which allows read operation only.ro. all_squash – map uid and gid of all users to anonymous uid and gid. rw – the clients can read the files on NFS volume and also write on the directory .if the insecure option is specified then any port can be used. The sync option means server will respond to the request after the changes made by the request are made permanent (that is changes are written to disk) so there is no chance of inconsistency.3.ro. no_root_squash – the root user of client is treated as the root user of the server as well ( the uid/gid of root is not mapped to the anonymous uid and gid). root_squash – this option maps the root user of client (uid 0 gid 0) to anonymous uid and gid.rw. .2.com(async.Options format The valid options used in the /etc/exports file are secure – the client computer should connect using the port below 1024.

Accessing the NFS directory [ OK ] [ OK ] [ OK ] [ OK ] [ OK ] [ OK ] [ OK ] [ OK ] The NFS directory needs to be mounted before it can be accessed. [root@localhost ~]# exportfs -a -v exporting ?????.com:/home/user1 exporting *:/home/vishnu The exportfs -a -v command is used to export all directories listed in the /etc/export file and print verbose output. z z z z -a option is used to export all directories -u option is used to unexport one or more directories. For example to access the /home/vishnu directory enter the below command in the terminal .4.example. To mount the NFS directory the mount command can be used. -r reexport the directories -v verbose mode produces output or use the below command [root@localhost nfs]# service nfs restart Shutting down NFS mountd: Shutting down NFS daemon: Shutting down NFS quotas: Shutting down NFS services: Starting NFS services: Starting NFS quotas: Starting NFS daemon: Starting NFS mountd: 10.119 The directories mentioned in the /etc/exports file can be exported that is made available to the network using the exportfs command or rebooting the system or restarting the NFS service.

For example to access the directory /home/vishnu the below command is used cd /net/localhost 10.NFS Server Configuration The NFS server configuration utility can be used to create the /etc/exports file using the graphical interface.120 [root@localhost nfs]# mount localhost:/home/vishnu /mnt/win This mounts the /home/vishnu directory on /mnt/win directory of the same system.master /net /etc/auto.5. To mount the NFS directories using the autofs use the following step add the below line in the /etc/auto. It is invoked using the below command [root@localhost nfs]# system-config-nfs It lists the two directories which are exported. User can also edit the properties of the directories already exported by selecting the .net Then restart the autofs service. The autofs facility can also be used to mount the NFS shared directories on demand. To add a new directory for export click on the add button.

The above panel is also displayed if the user wants to share a new directory (by clicking on the add button) but that time the panel will not contain any previous value. .121 directory in the directory listing and click on the properties button. The server settings can also be edited by clicking on the server settings button The user can enter the port numbers in the text boxes of the panel to force NFS daemon for using these ports. The below panel is displayed which can be used to edit the options which are used to share the directory /home/vishnu.

The sample etab file is /home/user1 ?????.acl. use nfsstat -s to display server side information use nfsstat -c for client side information use nfsstat -n for NFS statistics use nfsstat -r for rpc statistics The var/lib/nfs directory is used to keep information about the exported directory. 11.122 10. It uses following files to present the output in user readable format z z z z z z z /proc/net/rpc/nfsd -.anonuid=65534.insecure. /proc/mounts -.wdelay.procfs-based interface to kernel NFS client statistics.secure_locks.acl.2.com(rw.no_subtree_check. To invoke the samba server configuration utility enter the below command in the terminal [root@localhost nfs]# system-config-samba .async.all_squash.mapping=identity.anongid=65534) /home/vishnu *(ro.hide.anonuid=65534. /proc/net/rpc/nfs -.and rmtab files contain the information about the exported files.Using nfsstat The nfsstat command is used to display statistics about the NFS server and client activity.6.no _subtree_check.Samba Server Configuration The samba server configuration utility is used to configure the samba server on the system.root_squash.example.nocrossmnt.SAMBA SERVER 11.hide.wdelay.sync.Overview samba is used if the network connected with the system comprising of the computers running the windows operating system.root_squash. Windows operating system uses the SMB(Session Message Block) protocol for sharing files and printers.procfs-based interface to the mounted filesystems.insecure. The files xtab.no_all_squash.mapping=identity.procfs-based interface to kernel NFS server statistics.secure_ locks.nocrossmnt.1.etab.anongid=65534) 11.

Set the value of the option to below values . On the security tab the enter the following information the authentication mode. On the basic tab enter the work group name and the description of the work group. encrypt password and guest account. samba users . the authentication server.and new samba share.123 The panel can be used to configure the server settings. To edit the server setting click on the preferences menu and then to the server settings drop down choice.kerberos realm. The below panel is displayed.

124 On the preferences menu list the samba user tab invokes the Samba Users panel which helps to add new samba users. Click on the new user button to display the below panel On the above panel enter the UNIX user name and windows user name (the UNIX user name and the windows user name are usually same). After entering the user-name and password click on the add share button to display the below panel . The passwords for the users are also entered on this panel.

If the visible is not checked then the share won't be visible. The below panel displays the samba share created using the above procedure and values displayed in the example panels .The writable option and visible option lets the user choose whether the clients can write to the directory (writable option) and whether it is visible(visible). On the access tab user can define who can access the share. Enter the values and click on OK.If writable in not checked then the client can't write on the share. The share can be made accessible to samba users (by checking the check box) or can be allowed to everyone by clicking on the option box allow access to everyone. The share name for the directory is entered which can be any valid name and a description is added (you may write here anything).125 On the basic tab of create samba share the directory which is to be shared is entered.

conf is the main configuration file of the samba server. To add the above /home/user1 directory to the share the below content is to be added in the /etc/samba/smb.Samba configuration file The /etc/samba directory contains the configuration files for the samba server.conf configuration file [user1] comment = user1 home directory path = /home/user1 writeable = yes .3. The /etc/samba/smbusers file contains the list of the samba users.126 11. . The path of the shared directory is mentioned in the path entry. The /etc/samba/smb. browseable = yes valid users = vishnu In above entry the user1 is the name of the share comment is the description added and writable option means the client have write access to the share and the users who can access the share are listed using the valid user’s entry.

11.fc7] Server --------Comment ------- .fc7] Sharename --------user1 IPC$ ---Disk IPC Type Comment ------user1 home directory IPC Service (demo sama server) Anonymous login successful Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.Starting Samba service Use the below command to start the samba service.Checking the service To check whether the samba service is running on the system and the share created on the system is being shared as the user wanted it to be use the below command [root@localhost samba]# smbclient -L localhost Password: Anonymous login successful Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.25-2.1.0.127 The /etc/samba/smbusers file contains the list of samba users.0. service smb start 11.4.25-2.4. To add a new samba user vishnu as in above case enter below line in the /etc/samba/smbusers file vishnu = vishnu The left hand side denotes the UNIX user name and the right hand side denotes the windows user name.

conf.1.3.Starting vsftd Enter the below command to start the vsftpd service if it is not running [root@localhost ~]# service vsftpd start Starting vsftpd for vsftpd: 12. 12. The users can connect to the FTP server and upload.FTP SERVER 12. .conf file is # Allow anonymous FTP? (Beware .Configuring vsftpd [ OK ] The directory /etc/vsftpd contains the configuration and other options file for the vsftpd. The command displays all the shared directories on the system and also the workgroup created on the system.128 LOCALHOST Workgroup --------MYGROUP demo sama server Master ------- when asked for password press the ENTER or RETURN key of the keyboard to login as anonymous user. download files from the FTP server. The main configuration file for the vsftpd is /etc/vsftpd/vsftpd.Overview File Transfer Protocol is standard method of sharing files over the Internet. The sample vsftpd. The vsftp is name given to Very Secured File Transfer Protocol.2. anonymous_enable=YES # # Uncomment this to allow local users to log in. The command can be used to check the working of the samba server and the samba share.allowed by default if you #comment this out). 12.

129 local_enable=YES # the parameter anonymous_enable is when set to YES then the anonymous user login is allowed by the ftp server. local_enable parameter is when set to YES then local users can login to ftp server if set to NO then local users can not login to ftp server. connect_from_port_20=YES # xferlog_enable directive is set to YES logs information about the upload and download events. All the administrative users are listed in the file /etc/vsftpd/user_list root bin . if set to NO then anonymous user login is not allowed. connect_from_port_20 if set to yes then port 20 is used for transfer of data by ftp. # Activate logging of uploads/downloads. userlist_enable is set to YES then vsftp don't allow users listed in the file /etc/vsftpd/user_list to login through ftp. pam_service_name=vsftpd userlist_enable=YES the pam_service_name denotes the name of the service for the Pluggable Authentication Module. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 #(ftp-data). The /etc/vsftpd/user_list contain list of users which are allowed access if userlist_enable=NO.

log and /var/log/xferlog files contain the logging info about the ftp server. The file /var/log/vsftpd.130 daemon adm lp sync shutdown halt mail news uucp operator games nobody The vsftpd pam also looks for the user names in the file /etc/vsftpd/ftpusers. 12. The user names in the file /etc/vsftpd/ftpusers are administrative users (they are same set of users as the /etc/vsftpd/user_list file).4. The file lists the user names who are not allowed to login through ftp.ftp command prompt To start the ftp command prompt enter the below command [root@localhost log]# ftp ftp> ftp supports lot of commands like .

5. To invoke the utility enter the below command in the terminal [root@localhost ~]# system-config-vsftpd .Very Secure FTP daemon Configuration The Very Secure FTP daemon Configuration utility is used to configure the vsftpd daemon. ls -.131 open hostname or ip address – connect to the computer identified by hostname or ip address close – close a connections pwd – shows name of current working directory on remote computer. cd – used to change directory on remote computer. 12. bye – closes current connection and exits ftp. lcd – to change to a directory on local system mkdir – to create a directory on remote system rename – rename a file or directory on remote computer get – copy a file from current directory of remote system to current directory of local system mget – same as get but multiple files at once put – copy a file from current directory on local system to current directory on remote system mput – same as put but multiple files at once.lists the content of a directory on remote computer.

The information which will be logged can also be defined. The active connection options and the passive connection options as well.132 On the general tab user can specify options like enable upload and download of files .whether to run in standalone mode or not(in standalone mode vsftpd listens to the port it don't run under inetd or xinetd). The users can view the directory list if or not can also be controlled. Under server control tab user can start or stop the server view the log files. On the access control tab the user can define whether the local users should be able to login into the ftp server and the file which is to be used to ban users from accessing the ftp server for example the /etc/vsftpd/user_list file contain the list of the administrative user who should not be allowed to access the ftp server. . It also defines the port on which the ftp server listens. on Users tab the way system users and the anonymous users will access the ftp server is defined. On network tab the user can define the network options.log. The anonymous user behavior and the system users behavior is set differently so as to provide better grain of control On the directory option the file access options are set. On logging tab the user can provide the files which will be used for logging the standard logging file is /var/log/vsftpd. File names which match a user defined criteria can be made inaccessible and invisible to the clients.

Configuration The main directory of the ldap is /etc/openldap. The directory contains the configuration files and schema files for the ldap.conf file is # # LDAP Defaults # # See ldap.example. 13. It is used to create directories of information that can be shared among client applications over a network. BASE dc=example.133 Maximum number of clients connecting through a single source .LDAP SERVER 13.1.1 root root 246 2007-02-20 02:25 ldap. dc=com URI ldap://ldap. The sample ldap.com:666 SIZELIMIT TIMELIMIT 12 15 .conf(5) for details # This file should be world readable but not world writable.example.conf is the main configuration file for the ldap. 13.overview LDAP stands for Lightweight Directory Access Protocol.com ldap://ldap-master. The contents of the directory are [root@localhost openldap]# ls -l total 24 drwxr-xr-x 2 root root 4096 2007-02-20 02:25 cacerts -rw-r--r-.2.conf drwxr-xr-x 2 root root 4096 2009-01-06 16:17 schema The file ldap.

URI specifies the uri of the ldap server to which the ldap library will attach.and finding. After editing the configuration file user can start creating the directories using any of the ldap schemas.ldif and save the file.conf using the include directive. The command slapd -t is used to check the /etc/openldap/ldap. . The schema directory contains the schema files.searching. To create the ldap directories user have to include the ldap schema he/she is using in the configuration file /etc/openldap/ldap. The time limit of 15 in above example means that the ldap will take 15 seconds to answer a search request.schema use include /etc/openldap/schema/samba.schema nis.conf file for the syntax change.schema samba.134 DEREF never The BASE directive is used to set the set the distinguished name in the ldap format using the dc=value format. If the value is set to 12 then 12 results will be returned as the output of a search. DEREF options specifies the way an alias is dereferenced. The other values of the DEREF options is always.schema inetorgperson. SIZELIMIT specifies the limit of results which will be returned when the ldap server is searched. For example to include the samba. The structure used to create directories is the LDAP Data Interchange Format(LDIF). The server name can be specified or the ip address of the server can be specified. Create a directory entry with the extension . The value of deref directive is never the alias is never dereferenced. The various schema files are z z z z cosine. This is the default.schema The default schema can be used by the user or edited by the user to create the directory information of his/her own. TIMELIMIT specifies the time limit which the ldap will take to answer the search request.schema. The port can also be specified on the URI directive.

ldapsearch is used to search the ldap directory using the search parameters. The time of search or the time within which the ldap server should respond is defined in the TIMELIMIT option.135 To add the contents of the ldif file created to the ldap directory the command ldapadd is used. ldapdelte command is used to delete an entry from the ldap server. z z z z ldapadd -a command adds a new entry to the ldap directory.1. The number of entries which should be returned using the ldapsearch command is defined in the configuration file /etc/openldap/ldap. It is used to create an central information database which is kept at a server system and other computers on the network access the information. 14.2.Setting NIS domain name The command domainname . 13. The formats of the commands are domainname domain-name-of-system nisdomainname domain-name-of-system ypdomainname domain-name-of-system the below command sets the NIS domain name of the system to localdomain [root@localhost ~]# domainname localdomain The commands if used without any options give the nis domain name of the system . The computers which access the database information (maps) of the server are referred as NIS domain.and ypdomainname are used to set the NIS domain name of the system. The SIZELEIMIT option is used to define the number of rows returned.Overview Network Information Service (NIS) was created by Sun Microsystems.Starting the ldap Use the below command to start the ldap service service ldap start 14.3.NIS SERVER 14. ldapmodify command is used to modify the entries of the ldap server.or nisdomainname.conf.

conf.Configuring NIS The main configuration file of the NIS server is /etc/yp.conf file is # /etc/yp.3. The sample /etc/yp. .conf .136 [root@localhost ~]# domainname localdomain [root@localhost ~]# nisdomainname localdomain [root@localhost ~]# ypdomainname localdomain The NIS domain name of the system is lost when the computer is rebooted.ypbind configuration file # Valid entries are # domain LOCALDOMAIN server LOCALHOST # # # domain NISDOMAIN broadcast # # # domain NISDOMAIN slp # # # ypserver HOSTNAME Query local SLP server for ypserver supporting NISDOMAIN Use broadcast on the local net for domain NISDOMAIN Use server HOSTNAME for the domain NISDOMAIN. 14.

137 # # # Use server HOSTNAME for the local domain. try a broadcast call to find a server.5.conf is used to include the NIS in the search path of the files by a client system.4.2. The IP-address of server must be listed in /etc/hosts. The entry domain LOCALDOMAIN server LOCALHOST defines the NIS domain name and the NIS server name of the system.Staring NIS server To start the NIS server daemon enter the below command in terminal service ypserv start 14. # broadcast # # # If no server for the default domain is specified or none of them is reachable.Starting ypbind service The ypbind service handles requests for information from the NIS server. To start the ypbind service enter the below command service ypbind start 14.Starting NIS server 14. The configuration file is read by the ypbind daemon. 14.Mapping Information The /etc/nsswitch.1.4.4. The sample /etc/nsswitch file is # Legal entries are: # .

255.0.255. The format of the entry in the /var/yp/securenets file is netmask network example 255.16 so all the computers on the network 10.shadow.0.conf file.and group on them and if the files are not found on the system then after that they will search for the files on nisplus domain.db) files Use NIS on compat mode Use Hesiod for user lookups Stop searching if not found so far [NOTFOUND=return] the above list defines the valid entries which can be added in the /etc/nsswitch. . Next the Makefile in the directory /var/yp is edited to include the files which files are being shared by the NIS server. passwd: files nisplus nis shadow: files nisplus nis group: files nisplus nis In the above example the client computers will search the files passwd.0.0. also called YP Use DNS (Domain Name Service) Use the local files Use the local database (. The clients’ computers who are allowed access the NIS server information is added in the file /var/yp/securenets file.138 # # # # # # # # nisplus or nis+ nis or yp dns files db compat hesiod Use NIS+ (NIS version 3) Use NIS (NIS version 2).0 10.16 can access the NIS sever information. The file names which should not be shard in commented out.

14. DHCP server is used to assign the ip address.DHCP SERVER 15. The client computers will have to select that they want to use the DHCP server for the information like ip address.Overview DHCP stands for the Dynamic Host Configuration Protocol. 15.5.and DNS server.2.NIS database The NIS database of the files configured to have shared by the NIS server is created by using the ypinit command. The format of the file is ip address of network:file-name for which access is defined:security:mangle{:field} the field is optional.netmask.deny(denying access) the mangle field is having the value yes or no.DNS server and other information to the computers in its network.Starting the DHCP server To check the status of the dhcp server run the above command in the terminal chkconfig –list dhcpd if the service is not running then enable the service by issuing the command chkconfig dhcpd on after enabling the user can run the dhcpd service using the command service dhcpd start .port(to allow access from port below 1024).1. This file can be used to set rules that define which host computers can access which files. The security can have values as none(to allow access).netmask.139 The finer grain of control can be implemented using the file /etc/ypserv.conf.1. The server then provides the requested information to the clients 15.

leases. The configuration file is used to list the range of ip address out of which the server will assign a ip address to a computer on its network. For every client which has been assigned address one set of lease line is written in the file /var/lib/dhcp/dhcpd.conf 15.Working of DHCP server The file /var/lib/dhcp/dhcpd.DHCP client The DHCP client can be configured using the utility Network Configuration. 15.140 15.4. To invoke the Network Configuration window enter the below command in the terminal window [root@localhost ~]# neat or [root@localhost ~]# system-config-network .conf.leases contains information if a client has been assigned address by a dhcp server.3. On the client computer if a user enters the command ifconfig -a then corresponding to the Ethernet interface which was assigned ip address using the dhcp server the user will be the ip address mentioned in the file /etc/dhcpd.Configuration file The configuration file for the DHCP server is /etc/dhcpd. It can also contain option to assign a particular address to a definite Ethernet address on the network.5.

In the above example the device eth0 is chosen (Ethernet interface eth0). Choose the device listing. On the below Ethernet device panel choose the general tab .141 To configure a device to obtain the ipaddress. This will throw a Ethernet device panel to the user. click on the edit button.dns server information and other information needed for connecting to the internet from the dhcp server follow this steps.

. The dhcp client (invoked by the command dhclient at boot time if the client is configured to obtain the ip address from the dhcp server at boot time else invoked when the activate button of the network configuration utility is clicked after selecting the Ethernet interface) gets the ip address information from the dhcp server it first checks the configuration file /etc/dhclient. After making the changes the user should restart the network using the below command service network start The dhclient is used to get the information from the dhcp server.conf for configuration parameters). The process id (PID) of the dhcp client (invoked by the command dhclient) is stored in the file /var/run/dhclient.pid. User can also choose to obtain the DNS server information using dhcp by clicking on the check box Automatically obtain DNS information from provider.142 Then to set up a dhcp client click on the option box Automatically obtain ip address settings with and in the drop down menu items choose dhcp.

3. It is used to translate the host names into ip address and also ip address into the host names.Overview The DNS stands for Domain Name System.d/named start or service named start 16.-list named if the service is not running then enable the service using the command chkconfig named on to start the service named use the command /etc/init. 16. In Red Hat the DNS service is implemented using the Berkeley Internet Name Domain (BIND).2.DNS SERVER 16.143 16.1.BIND Configuration GUI The BIND Configuration GUI is used to configure the DNS server on a Red Hat Box. To invoke the BIND Configuration GUI enter the below command in the terminal [root@localhost ~]# system-config-bind . It also contains information about each domain and organization of domain into zones.Starting Named daemon The status of the named daemon can be checked by the command chkconfig .

The objects which are displayed in the drop down list are z z z z z z z z Zone View Access Control List Security key Server Controls Logging DNSSEC Trusted keys The user can enter the value of the parameter by clicking on the object. The values can be edited on the displayed panel. To add a new DNS server click on the New button to add a new server. After editing the values the changes can be saved using the save button of the main panel. The properties of an existing DNS server can be edit by selecting the server in the drop down list and then clicking the object on the drop down list. . In the current case the DNS server is selected.144 The properties button is clicked after selecting the object in the listing panel. After clicking on the new tab a drop down list is displayed on which the user can choose the object which he/she wants to set the value. This displays a panel on which user can enter the value.

The important action defined elements are acl – access control list used as acl “description “ { ip address }.conf for syntax. server – to describe the server logging – logging facility definitions options – various options like view – the value can be inside and outside for a DNS server the from the private network(inside) or from Zone – to describe the zone information After editing the /etc/named.pid. The pid of the named daemon is stored in the file /var/run/named. 16.4.txt The path and the description of the files can also be viewed using the utility BIND Configuration GUI. The statements in this file are enclosed in braces and are terminated by semicolon.// .conf file the syntax of the file can be checked using the command named-checkconf by default it checks the file /etc/named.conf.db. The directory /var/named directory is the zone file directory of the named service. The lines marked by /* */. The dump file of the named daemon is /var/named/data/cache_dumb. named-checkzone is used to check the syntax of the zone files which should be created by the user in the /var/named directory after creating the file /etc/named.conf file. ON the BIND Configuration GUI the DNS server is selected on the list and clicking on the the outside. The statistics file of the named daemon is /var/named/data/named_stats.and # are marked as comment lines.Important files The named daemon configuration file is /etc/named.145 To delete a listing use the delete button on the panel and selecting the object in the drop down list. the central directory request may come .

146

properties button displays the location on which the important files are kept and also the description of the files.

Command whois

Description Searches for the availability of the domain name. Format is whois domain-name.

host

It is used to get the ip address corresponding to the hostname and vice versa. Format is

dig

It is used to query the DNS server and display information returned by the DNS server. It is often used to troubleshoot the DNS server.

17.MAIL SERVICES
17.1.Overview

There are three parts of message transfer
z z z

MTA – Mail Transfer Agent MDA – Mail Delivery Agent MUA – Mail User Agent

MTA's are also referred as the mail server. The sendmail and postfix are examples of the mail server.
17.2.Sendmail

To start the sendmail server type the below command in the terminal window [root@localhost ~]# service sendmail start

147

17.2.1./etc/mail The /etc/mail is the core directory of the sendmail. The files which are contained in the directory are /etc/mail are divided into following category 17.2.1.1.configuration file The main configuration file for the sendmail is /etc/mail/sendmail.cf. Many options which sendmail uses are also defined in the file /etc/mail/sendmail.mc. The file /etc/mail/sendmail.mc contains the sendmail default values like the location of the other configuration files to be used by the sendmail, location of the log files and database files. 17.2.1.2.Domain name mapping file The file /etc/mail/domaintable contain the domain name mapping that is mapping the old domain name of the network to the new one. 17.2.1.3.Access file The /etc/mail/access file defines the hosts and users from which the mail server sendmail will accept mail for delivery or relay. 17.2.1.4.Virtual server files The file /etc/mail/local-host-name define the domain names for which the sendmail server of the system will act as a mail server. 17.2.1.5.Virtual users file The file /etc/mail/virtusertable defines the actions which sendmail should take after receiving mail from the trusted users and hosts. Apart from this files the directory /etc/mail also contains the .db files which are database files corresponding to the files described above for example access.db. 17.2.2.Generating the .db files To generate the .db files use the following approaches /etc/init.d/sendmail reload or

148

/etc/init.d/sendmail restart in above case the database files are automatically created as the sendmail is restarted or the configuration files are reloaded when the reload option is used. But this case doesn’t work if user doesn’t want to stop or reload the sendmail server. Then the second approach is used Use the below command sequence to create .db files for all the configuration file cd /etc/mail make all if the user wants to make the individual configuration files into the .db files then use the following commands cd /etc/mail make access.db replace the filename access.db with the .db file you want to create for example make virtusertable.db makes the file virtusertable.db. 17.2.3.Checking Sendmail Server The sendmail server responds to requests on the port 25. To check whether the server is working or not type the command [root@localhost mail]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 localhost.localdomain ESMTP Sendmail 8.14.1/8.14.1; Sun, 18 Jan 2009 17:55:26 +0530 ^] user can enter help command to see the sendmail commands he/she can use.

149

help 214-2.0.0 This is sendmail 214-2.0.0 Topics: 214-2.0.0 214-2.0.0 214-2.0.0 214-2.0.0 HELO EHLO MAIL RCPT DATA RSET NOOP QUIT HELP VRFY EXPN VERB ETRN DSN STARTTLS AUTH

214-2.0.0 For more info use "HELP <topic>". 17.2.4.Important Files 17.2.4.1./var/spool/mail The directory contains files corresponding to the user names that are using sendmail. These files contain the incoming messages received and processed by the sendmail. 17.2.4.2./var/spool/mail/statistics This file contains the collected statistics about the sendmail. 17.2.4.3./var/spool/mqueue This directory keeps the outgoing messages temporarily .the outgoing messages are kept until they are send. 17.2.4.4.Log files The sendmail log information is maintained in three files /var/log/maillog,/var/log/maillog.1,and /var/log/maillog.2. The log files contain different level of information. The file /var/log/maillog.2 contains the detailed log information. An entry is made for each mail been send by the server or received by the server. 17.2.5.Actions taken by server on a mail There are four actions which the server can take

3. ERROR:user defined text message – inform the user why the server did not relay the message. 17. Connect:localhost.1 17. The second command adds the postfix server to run level which the user is currently logged on.Starting postfix server The postfix server is not added in any run level by default (sendmail is generally there). For example # by default we allow relaying from localhost.. This options are used to configure the actions of a sendmail server. but is not referenced in any runlevel (run 'chkconfig --add postfix') [root@localhost postfix]# chkconfig --add postfix the first command shows that postfix is not in any runlevel.Postfix RELAY RELAY RELAY It is a mail transfer agent that is mail server. To enable the postfix server enter the command [root@localhost postfix]# chkconfig postfix on .3.0. DISCARD – the message is rejected and sender is not informed that the message is rejected.0. The options are used in the /etc/mail/access file.1. The directory /etc/postfix contain the main configuration files and access related files used by the postfix server.localdomain Connect:localhost Connect:127..150 RELAY – the server sends the message to the mail server request in the mail. REJECT – the message is rejected and sender is informed that the message is rejected. So to add the postfix server use the command [root@localhost postfix]# chkconfig --list postfix service postfix supports chkconfig.

3.3.2.cf file and is used for reference in case user has made any wrong changes in the file main. The incoming mail of the users processed by the postfix server is kept in the file.4.2.3.Permissions file The file /etc/postfix/postfix-files contain the directory and file permissions set by the postfix server.cf is the main configuration file for the postfix server.Daemon Configuration file The file /etc/postfix/master.3. There is also a file /etc/postfix/main. 17.postfix queues and locations to be used for logging. mailbox. [ OK ] .default which is exact copy of the main. It defines the hostnames and domain names . The files act as mailbox.Mailbox The directory /var/spool/mail contains files corresponding to the user name of each user having access to the postfix mail server.Script file The file /etc/postfix/postfix-scripts file is a shell script which executes the postfix administrative commands.1. 17. 17. For example for a user named jack the mailbox will be /var/spool/mail/jack.Post install file The file /etc/postfix/post-install is a shell script which performs the post installation configuration of the postfix server.2.3. 17.2. 17. Access file – the file /etc/postfix/access file is used to define the users and system which have access to use the postfix server.2.3.cf is the main configuration file for the postfix daemon process.3.cf.3.Configuration file The /etc/postfix/main.2.cf.151 to start the postfix server use the below command [root@localhost postfix]# service postfix start Starting postfix: 17.

[root@localhost mail]# cd /var/spool/postfix.3.3./var/log/maillog. 17.4. The contents of the directory /etc/alternatives display the default services configured on the system. 17. In the window displayed choose the postfix as the alternate mail server.2. To switch between the mail services from desktop perform following actions System Tools --> Mail Transport Agent Switcher.and /var/log/maillog. The postfix server is treated as an alternative service to the sendmail server./var/spool/postfix The directory contains a list of directories to temporarily store the mails.1. The alternatives services and the default services are defined in the directory /var/lib/alternatives directory and the /etc/alternatives directory. The /var/lib/alternatives directory contains file mta which lists other mail servers.Log files The log information about the postfix server is logged in the file /var/log/maillog. .ls active corrupt deferred hold bounce defer flush maildrop private saved public trace incoming pid In above example the directory /var/spool/postfix contains the sub directories incoming to temporarily store the incoming mails which have not been delivered yet.2 contains log information about each and every mail received and send by the postfix server.Switching MTA On a Red Hat Linux box the sendmail and postfix both the servers are installed but the sendmail is used as the default MTA.5. Bounce to temporarily store the bounced mails.4. The file /var/log/maillog.152 17. The directory contain the entry mta-sendmail this makes sendmail as the default mail server.

5.The mailboxes of sendmail and postfix are one single file so the above protocols are used to access the mails. The user sending mail and receiving mail don’t see any difference as there is change only in the transport agent. 17. base_dir = /var/run/dovecot/ .Dovecot The dovecot is used to configure the IMAP and POP3.The sample format of the /etc/dovecot. [root@localhost alternatives]# service sendmail stop Shutting down sm-client: Shutting down sendmail: [ OK ] [ OK ] the default sendmail server s stopped and the below command is used to start the postfix server.5. [root@localhost alternatives]# service postfix start Starting postfix: [ OK ] The postfix server takes the mail transport agent work in place of sendmail.IMAP stands for Internet message Access Protocol and POP3 stands for Post Office Protocol. 17.Starting Dovecot To enable the dovecot service use the command chkconfig dovecot on and to start the dovecot service use the command service dovecot start 17.Configuration file The main configuration file for the dovecot service is /etc/dovecot.conf file is # Base directory where to store runtime data.2. It replaces the sendmail components and uses the postfix components but the location of the mailbox and the log files remain same in both the services.conf.1.5.153 Then use the following commands to stop the sendmail server and start the postfix server.

154

base_dir option sets the location where dovecot will store the run time data. The base_dir will contain the file master.pid file which contains the PID of the dovecot service. protocols = imap imaps pop3 pop3s protocols option sets the protocols which the dovecot listens. Above example sets the dovecot to listen imap,imaps,pop3 ,and pop3s protocols. # specify different ports for IMAP/POP3. For example: protocol imap { listen = *:10143 ssl_listen = *:10943 .. } the above part sets the port for the imap. Different ports are used for different protocols. # Log file to use for error messages, instead of sending them to syslog .# /dev/stderr can be used to log into stderr. log_path =/var/log/dovecot.log # Log file to use for informational and debug messages. # Default is the same as log_path. info_log_path =/var/log/dovecot.log The log_path and the info_log_path sets the log file paths where the dovecot will log the informational messages and error messages. # Maximum number of running mail processes. When this limit is reached, # new users aren't allowed to log in. max_mail_processes = 1024

155

max_mail_processes defines the maximum number of mail processes that can run simultaneously

18.NETWORK SECURITY
18.1.Overview

Network security is becoming a vital and challenging task. If a system is connected with network then the administrator should pay considerable attention to network security.
18.2.The daemon xinetd

The daemon xinetd is started when the system boots and listens on lot of ports corresponding to the services configured in the configuration file of the xinetd daemon /etc/xinetd.conf. The directory /etc/xinetd.d contains files corresponding to the services which xinetd will start if connection is made to that port number. These services are called on demand services and can be seen using the command [root@localhost xinetd.d]# system-config-services

or by viewing the contents of the directory /etc/xinetd.d [root@localhost ~]# cd /etc/xinetd.d;ls chargen-dgram daytime-dgram discard-stream rsync time-dgram

156

chargen-stream daytime-stream echo-dgram tcpmux-server time-stream cvs dgram echo-stream tftp

discard-

Each file correspond to a service which xinetd automatically starts when connection is made to that port. This on demand services should not be accessible by everyone. The access can be made selective by the use of TCP wrappers.
18.3.Using TCP wrappers

The tcpd (tcp wrapper daemon) program can be set up to monitor incoming requests for xinetd services or in other words the services which xinetd supports and also services that have one to one mapping onto executable files. If tcp wrapper is used then if a client makes connection at a port for services like finger,talk,telnet,and rsh ( xinetd service) then at first tcp wrapper daemon determines whether the connection will be allowed or refused. If the connection is allowed then the corresponding service is invoked to listen at the port. The tcpd authenticates the client using the files /etc/hosts.allow and /etc/hosts.deny. 18.3.1./etc/hosts.allow It contains the list of ip address and subnet masks of clients who are allowed connection. This file is first scanned by tcpd. 18.3.2./etc/hosts.deny Iit contains the list of ip address and subnet masks of clients who are not allowed connection. This file is scanned by tcpd after scanning the /etc/hosts.allow file. If an address is not specified in any file then the connection is allowed. Format of the files /etc/hosts.allow and /etc/hosts.deny are same. The keyword ALL is specified for all clients. For example in.telnetd: .example.com fingerd: ALL the connection for the telnet is allowed for clients from domain example.com and connection for the finger is allowed for all the clients.

157

The service daemon is listed on the left if two service daemons are to be listed then the daemons are separated by comma (,) character. The semicolon acts as a separator between the daemon names and the address part. If multiple address is to be mentioned then the addresses are separated by comma. The ALL flag enables user to make the files as restrictive as it can be made. This enhances security.
18.4.Security Level Configuration

The Security Level Configuration utility is used to set the security level of the system. To invoke the Security Level Configuration utility enter the below command in the terminal window [root@localhost ~]# system-config-securitylevel

On the Firewall Options tab the user can set the firewall is enabled or disabled. The trusted services are allowed to pass through the firewall. On the other ports the user can add the trusted ports by clicking on the Add button clicking on the Add button displays the below panel

The user can click on the Advanced options tab to add a file containing iptable rules in the iptables save format. This allows user to add more complex rules and also customize the fire- wall.158 On the add port panel the user can enter the port and also the protocol (tcp and udp). .after entering the value press ok. After making the changes click on apply and then OK. The user can browse and upload the file containing the user defined rules.

The additional modules help in NAT filtering and helpers. The sample /etc/sysconfig/iptables-config file is IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp" The directive IPTABLES_MODULES defines the modules which are loaded.159 18. # Save current firewall rules on restart. 18. In above example the modules ip_conntrack_netbios_ns ip_conntrack_ftp are loaded. The file /etc/sysconfig/iptables-config is used to. # Value: yes|no. IPTABLES_SAVE_ON_RESTART="no" If the value is yes then the rules are saved to the file /etc/sysconfig/iptables.1. default: no # Saves all firewall rules to /etc/sysconfig/iptables if firewall gets # restarted.Command Reference Command iptables -A Description To append a security rule in current iptable rule iptables -D iptables -R iptables -I iptables -L Delete a rule Replace a rule Insert a rule List all rules .Configuration files There are two configuration files /etc/sysconfig/iptables and /etc/sysconfig/iptables-config. load additional iptables modules. The file /etc/sysconfig/iptables contains the security level currently imposed on the system.5.4. This file is written by the Security Level Configuration utility.

PAM is a system of libraries that handle the authentication tasks of applications (services) on the system.path module-argument The type in above case is auth.2.0 auth include system-auth system-auth system-auth account include password include the first line is a comment.160 iptables-save Save rules from kernel and install them in a configuration file. For example the file passwd in the above directory contains the following line #%PAM-1.d are present.and session.d correspond to the services which use PAM for authentication.password. The format of the next lines are or rule lines are type control module.d is used for configuring PAM. .d The files in the directory /etc/pam./etc/pam. 19.authentiction.PAM AND SELINUX 19.conf is ignored if the files in the directory /etc/pam.PAM PAM stands for Pluggable Authentication module.1. The configuration file /etc/pam. 19. PAM allows four types account. The second line contains the rule for the PAM. The contents of the file /etc/pam.conf or the files in the directory /etc/pam.

Contents of file system-auth auth auth auth auth required pam_env.so uid >= 500 quiet pam_deny. The configuration file is passwd as an argument. The system-auth module resides in the current directory.so sufficient pam_unix. let three modules are called and if this module returns false then the resultant will be false but pam will call all the modules which are to be called for the process.so in the above file the pam modules are called for verification of a user for the service passwd. time and other parameters. Include – this module includes all lines given in the configuration file of a specific type. The system-auth is the module path. The module is important if it is the only module for the service. Required – means that pam will return failure if this PAM modules returns failure.required. .161 Account – the account type defines access to a service based on the availability of resource.and optional.sufficient. Session –this type is used to perform the jobs (like logging) before a user access a service or after a user access a service. Sufficient – means that PAM returns success if this module returns success and other PAM modules will not be called which are to be called for the process. The valid values for the control are include.so nullok try_first_pass requisite required pam_succeed_if. authentication(auth) – the authentication type prompts the user for a password and if the user provides it then he/she can access the service. Password – the password type is used to update the user information like changing user password. Optional – the success and failure of this module is not important on the overall return value (success or failure) of PAM.

The contents of the file are (for the above configuration of SELinux administration) warning . To invoke the SELinux administration enter the below command in the terminal [root@localhost selinux]# system-config-selinux The user can set the value of SELinux enforcing mode. 19.SELinux administration The SELinux administration utility is used to configure the SELinux.162 The PAM modules reside in the directory /lib/security. Disable-.2. It is flexible access control architecture and provides support for the role based access control and multilevel security.1. Permissive – SELinux policies are checked but policy issues instead of enforcement. Three values are allowed enforcing – SELinux policies are enforced.2.SELinux policies are not enforced that is are disabled. 19. The SELinux administration changes the values in the SELinux configuration file /etc/sysconfig/selinux.SELinux SELinux stands for the Security Enhanced Linux.

.163 # This file controls the state of SELinux on the system. interface and hosts and file context mapping.SELinux security policy is enforced.SELinux is fully disabled.Only targeted network daemons are protected. disabled . permissive .Command Reference Command semanage Description Mapping Linux user names to SELinux user identities.remove.Full SELinux protection. chcat Change file or users SELinux security category chcon Change the security context of each file to context semodule Used to install.list selinux policy modules. SELINUX=disabled # SELINUXTYPE= type of policy in use.SELinux prints warnings instead of enforcing.3. security context mapping for network port. Possible values are: # # targeted . strict . # SELINUX= can take one of these three values: # # # enforcing . SELINUXTYPE=targeted 19.

After an installation a user wants to see the log information of the installation process. Which command is entered on the anaconda boot prompt to install using the kickstart file located on the website http://kickstart-file/install/linux. selinux .-location=mbr b. grub Answer – a Explanation – disk druid is the default partition manager for the Red Hat Enterprise Linux. set selinux . A user wants to use Kickstart file for installing Red Hat Linux.-enforcing c. bootloader . Grub is the default bootloader for the Red Hat Enterprise Linux and anaconda is default installer.164 O V E R 2 5 0 E X A M P R E PA R AT I O N Q U E S T I O N S 1./root/anaconda-ks. /root/anaconda. Which line should be added in the Kickstart file to install the bootloader in the Master Boot Record (MBR)? a.com? . anaconda b.log Answer – b Explanation -. Which is default installer of Red Hat Enterprise Linux? a.log is default log file. 3.-default d. /root/install-log. redhatinstaller d.cfg is the Kickstart file created after successful installation of Red Hat and /root/install.-enforcing b. He wants to set the SELinux policy during installation to enforcing. bootloader .cfg b. selinux = enforce Answer – b 4. Which line should he add in the Kickstart file? a. /root/anaconda-ks.-location=hd0 Answer – a 5. grub . grub .log c.-location=hd0 d. disk druid c. /root/install. 2. Which file the user should refer? a.info d. selinux .-location=mbr c.

Answer – d Explanation – SAFE=no denotes that kudzu starts in no safe probing mode and anything other than no means that it is started in the safe mode. 1 b. LILO is also bootloader but nowadays it is not used as default bootloader. :anaconda ks=http://kickstart-file/install/linux. :boot ks=http://kickstart-file/install/linux. /home d. GRUB b. 2 c.com c. 8. :boot ks . Which of the following is the default Red Hat Linux bootloader? a. SAFE=YES c. /. swap c. /boot.-http://kickstart-file/install/linux. Which two partitions are necessary for Red Hat Linux installation? a.d Explanation – The / filesystem is root of the Linux file system structure. You want to start the kudzu in safe probe mode. So it is mandatory to make a / partition. SAFE=? d.com Answer – d Explanation – The anaconda boot prompt is denoted by: boot. ANACONDA Answer – a Explanation – GRUB is the default bootloader of Red Hat Linux. 3 d.165 a. /home. /usr b.-http://kickstart-file/install/linux. What will you add in the configuration file /etc/sysconfig/kudzu? a. How many modes can kudzu operate? a. DISK DRUID d. LILO c. The swap partition is . DISK DRUID is the default partition manager in Red Hat Linux.com d. 4 Answer – 2 Explanation – kudzu can operate in two modes x safe probe mode x no safe probe mode 7. /. SAFE=no b. All other partitions can lie within the / partition.com b. swap Answer -. Anything other than no can be used on the left hand side of the assignment. 6. 9. :anaconda ks .

c Explanation – system-config-network and neat both the commands can be used to invoke the Network Configuration utility./etc/sysconfig/network-scripts/ifcfg-* d. 11. system-config-net c./etc/X11/xorg. What command is used to invoke the Network Configuration utility? a.conf is module configuration file /etc/X11/xorg./etc/modprobe. 128 MB c. 512 MB d. /usr d. Which files will kudzu query to find out the devices already configure? a. You have computer 256 MB RAM .conf lists the hardware like monitor. 12.conf. 400 MB Answer – c Explanation – For good performance of the system the swap space area should be double of the physical RAM attached with the System.conf.conf b. 10. 13. /etc/modprobe. Which filesystem contains the configuration files? a./etc/X11/xorg. 256 MB b./etc/sysconfig/networkscripts/ifcfg-eth0 lists the network device detected if there are more than one network device present then /etc/sysconfig/networkscripts/ifcfg-eth1 lists the second network device detected and so on. /etc/modprobe. /etc b. neat d.166 also necessary as Linux uses swap partition as extension of main memory. keyboard which are configured for X. /var c.conf Answer – c Explanation -.conf. mouse. system-config-network b. The file /etc/sysconfig/hwconf is not present on the system. system-config-neat Answer – a. /etc/modprobe.What is the size of swap space for good performance of the system? a. /mnt Answer – a . /etc/sysconfig/lasthwconf c.

d. Which option will you use in kickstart file? a./root/anaconda-ks. /home/anaconda-ks. You want to see the information about the processes running on your system. /root/anaconda-ks. 16. You want to upgrade a system using the kickstart file. update option in line 1 of kickstart file. no file contains that information b./proc is pseudo filesystem which contains information about the processes running on the system. system-config-time is used to set time only. You have installed Red Hat Linux in your box. b. c. /root b. upgrade option in line 1 of kickstart file. /sys Answer – c Explanation -. Which filesystem will you use to get the information? a.cfg c. Is there any difference? a. system-config-date is used to set date only. 15.167 14. No both are same b. update option in line 5 of kickstart file.cfg d. You want to see the options you have chosen during the installation process. d. upgrade option in line 5 of kickstart file. /boot c. /proc d. yes both are different Answer – a . Answer – b Explanation – install option is used in the first line of kickstart file to show fresh install and upgrade option is used in the first line to show upgrade of a previous installation. Your friend used systemconfig-time for the same purpose.cfg is the default kickstart file created by anaconda based on the options chosen during installation. /root/anaconda-ks Answer – b Explanation -. Which file should you look for? a.You used system-config-date to set the date of your system. 17. c.

Which process has the PID of 1? a. boot /kernel-2.14 c. mount the partition indicated within the rootnoverify option. What is meaning of the option rootnoverify (hd0. c. init b.14 b. 0) in the grub configuration file? a. Don’t verify the first sector of hard disk. For example if windows is installed along with Red Hat then grub should not try to mount the partition on which windows is installed. 0) option is used in case there is another operating system installed along with Red Hat Linux. timeout .14 d. Which command will you use in grub configuration file? a. You want to boot your Red Hat Linux operating system using kernel2.14 Answer – a 21. kernel /vmlinuz-2. kernel /kernel-2. You have grub bootloader installed on your system. timeout=10 secs c.6.14.6. You want to boot the default operating system if user did not make a choice for 10 seconds. timeout=10 b.-10 Answer – a Explanation – The timeout=10 parameter is allowed in the grub configuration file /boot/grub/grub. don’t verify the / partition b.168 18. 19. grub d.conf. boot /vmlinuz-2. Answer – b Explanation – The rootnoverify (hd0. 20. timeout=10 s d. inittab c. Don’t mount the partition within braces of rootnoverify option. d.6. main Answer – a . What changes should be made in the grub configuration file? a.6.6.

169 Explanation – The init process have the PID of 1. Answer – a Explanation – The numeric digits i. /etc/rc. Multiuser with networking mode c. 4.5 c. What will happen if runlevel is set to 6? a. Add ca::ctrlaltdel:/sbin/shutdown –h now in /etc/inittab file d.it is called father of all processes.d d. It cannot be done Answer – a Explanation – The init process looks the /etc/inittab file for the processing to be done. Which of the two services will start first? a. Write a shell script for that and keep it in root directory c. . Since 1 is less than 8 so S111USERDEF is run first. S111USERDEF b. During boot process kernel gives control to the init process. /etc/rc. 5 and the start priority is 25 and the stop priority is 75. It denotes that the script will run in runlevel 3. The entry captures the CTRL+ALT+DELETE key sequence and the command shutdown –r now is executed. /etc/rc. Add ca::ctrlaltdel:/sbin/shutdown –r now in /etc/inittab file b.d b. S85USERDEP c. What is the meaning of this line? a. It denotes that the script will run in runlevel 3.5d c. What should you do? a. You want to reboot your system if a user presses CTRL+ALT+DELETE keys of the keyboard during the boot process.4. 23.d/rc5. The digits are compared from left to right taking one digit at a time.d Answer – a 26. 111 and 85 decide the order of run.d/r5. 22. The system reboots in a loop d. A user created two scripts S111USERDEF and S85USERDEP which are executed during boot time. Can’t be determined. and 5 the multiuser mode is active. /etc/rc. Which directories contain the boot time scripts for the run level 5? a.d/rcv. The system comes to halt Answer –c Explanation – In runlevel 0 the system comes to halt and in runlevel 2. 3.e. 25. A runlevel script has the line #chkconfig 345 25 75. Multiuser mode booting b.d/rc. At same time d. It is a comment b. 24.

runlevel c. Previous runlevel of the system was N b. The httpd service is enabled in the runlevel 5 but it is not running.170 d. The current runlevel of the system is N. The output of the runlevel command is N 5. 31. prevrunlevel c. chkconfig httpd on d. prevrun Answer – a Explanation – the runlevel command is used to get the current run level and the previous runlevel of a system. How will the problem resolve? a. chkconfig httpd start c. runlevel b. service httpd on Answer – a . service httpd start b. init d. Which command is used to get the previous run level of a system? a. runlevel service-name on b. The runlevel of the system was never changed from 5 so the previous runlevel is displayed as N. disable a service and lists the status of a service or services. lastrunlevel d. chkconfig service-name enable Answer -. Which command is used to change the current run level? a.c Explanation – the chkconfig command is used to enable a service. You want to enable a service service-name for current run level (run level 5). chgrunlevel Answer – a 30. Which command will you use to do so? a. 28. The line gives an error Answer –c 27. Answer – d 29. c. What does it mean? a. enable service-name c. chkconfig service-name on d. telinit b. The previous runlevel of the system was 5 d.

d/rc*. 36. /etc/fstab c. serviceconf b.all b.d/init. system-config-services c. 34.d c. Which command is used to start the service configuration utility? a.d/init. /etc/rc. Which filesystem is not mounted on disk partition? a. serviceconf. /etc b. Using chkconfig list Answer – b Explanation – the chkconfig –list gives the listing of all the services in different run levels with the status of services as on or off. Which file contains the static information about the filesystem? a. /etc/rc. How will you view the status of all the services in all the runlevel? a.d 35.d contains all the runlevel scripts and the directories /etc/rc.171 Explanation – the service httpd needs to be started for that the service httpd start command is used.d/rcall. /etc/rc.d/init. None of these Answer – c 33.d contain symbolic links to the scripts of directory /etc/rc. Using chkconfig all b. /home c. /usr d. /etc/ftab .d d. /etc/rc. 32.d/all. system-config-services d. Using chkconfig –list c.d Answer – b Explanation – The directory /etc/rc. /proc Answer – d Explanation – The proc filesystem is virtual filesystem (it is not mounted on a disk partition) which contains the process and system information. /etc/mtab b. Using chkconfig –all d.d/rc. Which directory contains the run level scripts of all the runlevel? a.

The user wants to access files kept in the /dev/sda6 partition with the vfat filesystem type. Add notauto option in fourth field of /etc/mstab Answer –a Explanation – At boot time the /etc/fstab file is scanned for information about the filesystem to be mounted. A user wants don’t want to mount the /home partition automatically at boot time.172 d. mount –t vfat /mnt/win /dev/sda6 Answer – b Explanation – The mount command has the form mount –t filesystem-type source partition target partition . Which command is used to see the listing of filesystem currently mounted on the system? a. and other options. 37. mount Answer – d Explanation – fdisk command is used for creating new partition and view all the partitions of the hard disk. A system has windows and Red Hat Linux installed on it. /etc/mstab d. Add noauto option in fourth field of /etc/mtab d. fdisk –m c. Add notauto option in fourth field of /etc/fstab c. /etc/fstab b. If noauto option is used the filesystem is not automatically mounted. mount –t d. mount vfat /dev/sda6 /mnt/win b. /etc/ftab Answer – b Explanation -. Which filesystem contains the information about the filesystem currently mounted on the system? a. 38. 40. What should he/she do? a. mount –t vfat /dev/sda6 /mnt/win c. /etc/mtab c./etc/mtab contains the information about the filesystem currently used by a running system. 39. fdisk -l b. /etc/mstab Answer – b Explanation – The file /etc/fstab contains mount point. Add noauto option in fourth field of /etc/fstab b. fdisk –t vfat /dev/sda6 /mnt/win d. What should he do? a. filesystem type.

What is the size of the file /home/demo? a. mkswap d. Which command is used to create a swap filesystem on a device or file? a. The command is wrong Answer – b Explanation – The bs option denotes the blocksize and count denotes the number of that. createswap b. fdisk –l c.conf b. mkfs c. /etc/mkfs/mke2fs. mkfs.conf c.vfat. 41. None of above Answer – a Explanation -. /etc/mke2fs. So the size of the file is 1000000 * 2 = 2 MB. 42. cat /proc/swaps b. A file is created using the below command dd if=/dev/zero of=/home/demo bs=1000000 count=2. 44. /etc/ext3. cat /proc/swap d. Your system has a swap partition on /dev/sda3 and another swap partition on /dev/sda5.conf d. 2MB c.vfat /dev/cdrom c. 20MB b. Which configuration file is used while creating ext3 filesystem on a partition using the mke2fs command? a. swapon Answer – c 45. None of above Answer – c Explanation – The mkfs –t vfat is frontend of the command mkfs. None of above Answer – b 43./proc/swaps contain the entries .How will you decide which swap partition is active? a. 2GB d.173 to mount a source filesystem on target directory. Which command is used to create vfat filesystem on a re writable CDROM? a. Both of above d. mkfs -t vfat /dev/cdrom b.

/etc/auto.174 of the entire active swap space of the system. In the third option .d/autofs controls the operation of the automount daemon. mdadm . Data on device will not be erased d. Which configuration file does /etc/rc.d/init. 48. The contents of the file can be viewed using cat command. mdadm . /etc/autofs.d/autofs status c.master d. -w is invalid option to badblocks command Answer – b Explanation – The data is not deleted if the badblocks command is used without option or with –n option.-raid devices=2 /dev/sda1 /dev/sda2 b.d/autofs .-level= should be used.d/init. /dev/sda2? a.d/init.-level=5 devices=2 /dev/sda1 /dev/sda2 Answer – a Explanation – In second option .-create /dev/md0 . No problem b.d/init.-level=5 .-raid devices=2 /dev/sda1 /dev/sda2 c. Which command is used to create a raid device of level 5 using devices /dev/sda1. mdadm .-level=5 . 46. Data on the device will be erased c. mdadm .-status Answer –b Explanation -. fsck b. /etc/autofs.d/init.d/autofs status b.d/autofs use? a.-create /dev/md0 .-create /dev/md0 .master Answer –c 50./etc/rc. How will you check the status of the automount daemon? a.-level 5 . /etc/auto. 49. /etc/rc. Which command is used to check a device for badblocks? a.-create /dev/md1 .-raid devices= /dev/sda1 /dev/sda2 d. mkfs c. A user ran command badblocks -w on a device containing important data files.-raid .d/automount status d. /etc/rc.conf c.conf b. What will be the problem? a. /etc/rc. badblocks Answer – d 47. chkfs d. /etc/init.

/dev/vol_grp c.175 devices=n where n is no of devices is missing. Which command is used to create volume group? a. Volume group c. System-config-lv b. System-config-lvm c. 54. System-config-logman d. Both of them Answer – d Explanation –Physical volume is to be initialized first and then the volume group is to be created before creating Logical volume. volgrpcr d.-raid devices. How will you remove one of the devices from the raid device? a. 56. /home/vol_grp d. There is no such utility Answer – b 55.-raid is missing from . /sys/vol_grp Answer – b Explanation – The directory /dev/vol_grp contains lvol0 entry corresponding to the logical volume lvol0. Which of the following should be created first before creating the Logical volume? a. vgextend c. Which file and directory yum does look for information about the software . Physical volume b. 53. 51. mdadm raid-device-name –r device-name b. pvcreate Answer – a Explanation – vgcreate is used to create a new volume group and vgextend is used to extend an existing volume group. Which command is used to invoke the Logical Volume Management utility? a. vgcreate b. No directory has the entry b. mdadm –r device-name raid-device-name Answer – a 52. mdadm –r raid-device-name device-name d. None of them d. mdadm device-name –r raid-device-name c. A raid device contains four devices. In fourth option . Which directory contains entry for the logical volume group lvol0 created by a user in the volume group vol_grp? a.

Then he went for a cup of coffee. The gpgkeys of packages are not checked before install or update c. User can use the file to decide the install was successful or failure. Sytem. Yellow umbrella c. Looking at /etc/yum.d c. global b. /etc/yum. Both of them d. Yellow software updater modified Answer – a 58. It uses /etc/rpmrc configuration file which is configuration file specific to a system. The configuration file .conf. User.conf b. User.rpmrc in the home directory of a user is the user . How can user decide whether the install was successful or failure? a.d directory d. What is the importance of option gpgcheck=1 in /etc/yum. Yellow updater modified d. What are the levels of rpm configuration file? a. system Answer – b Explanation – The rpm command uses the two global configuration file /usr/lib/rpm/rpmrc and /usr/lib/rpm/redhat/rpmrc. User. If the gpgkey option is 1 then the packages are checked for the gpgkeys before installing or updating the packages. None of them Answer – c Explanation – it looks for the configuration file /etc/yum.conf.d 57. The gpgkeys of packages are checked before update only Answer – a Explanation – Usually the gpgkeys are installed before adding any software repository.conf and then looks for the files in the directory /etc/yum.log Answer – d Explanation – The log file of the yum command is /var/log/yum. The gpgkeys of packages are checked before install or update b.global d.system.conf. What is full form of yum? a. Yellow dog updater modified b. The install completed before his return. /etc/yum. 59.conf file c. The status of yum commands execution will be logged there. Looking at /var/log/yum.176 repositories? a.conf file? a.global c. The gpgkeys of packages are checked before install only d.log. A user ran yum command to install a package. He can’t decide b. 60. Looking at /etc/yum.

U and e. yum install package-name . F are mutually exclusive. rpm –F installs a package if it is not installed previously c. 63. rpm –iF Answer – c Explanation – the options -v (verbose information). rpm –q package-name d. Using system monitor c. /var/lib/rpm/* b.rpm has been installed in your machine. 61. Is the command correct? a. rpm –ieh b.177 level rpm configuration file. A user used the command rpm –U package-name to install the package packagename which is not previously installed on the system. 64.e.-vv (verbose lots of information) and h (prints hash marks are rpm options which can be used with other options. What is the difference between rpm –U and rpm –F commands? a. The options i. and e. Which is a valid rpm command? a. Yes c. No use rpm -v b. rpm –Ueh c. /var/log/rpm/* c. b. How will you check vendor’s statement? a. rpm –ivvh d. Where does the rpm package information kept? a. 62. Both command do same function d. No use rpm-q d. None of the above Answer – a Explanation – The command rpm –U updates a previously installed package but installs a new package and the command rpm –F updates a previously installed package but does not installs a new package. rpm –U installs a package if it is not installed previously b. No it is used for update only Answer –b Explanation – The command rpm –U is used to upgrade a previously installed package and if the package is not installed in the system then it installs the package. 65. There is no way to check vendor’s statement. /var/lib/rpm/db/* d. /var/lib/rpmdb/* Answer – a Explanation – The rpm command uses the /var/lib/rpm/* directory as the database for storing rpm package information. Your software vendor informed you that package-name.

You have downloaded a package in tar.gz file into . xvfz uncompress a . Using tar xvf b. What is the difference between the commands tar xvf and tar xvfz? a.zip file d. bzip2 is used to compress a file to .tar format and then the command tar xvf is used to uncompress the tar file. system-config-manage c. bzip2 –d creates a tar. How will you uncompress the file? a. Which command is used to invoke a Package Manager? a.yum install is used to install the package packagename. 66.bz2 file b. Package Admin d. bzip2 is used to uncompress .gz format. Using gunzip followed by tar xvf c. xvfz compresses a .gz file but xvf uncompress a .178 Answer – c Explanation – rpm –q package-name queries the rpm package database and finds out information about the package-name. No difference b. system-config-packages d.tar file d. xvfz is verbose mode of command xvf Answer – c 68. Package manager b. system-config-manages Answer – c . 67.bzip2 –c is used to create .bz2 file and –d option is used to uncompress a . Which utility is used to manage packages on a Red Hat box? a.tar file c. Using tar xvf followed by gunzip d. What does command bzip2 does? a.tar. 69. Answer – a Explanation – bzip2 command is used to create and decompress a bz2 file. Package manage Answer – a 70.tar file but xvf uncompress a . Using bzip2 followed by tar xvf Answer – b Explanation – gunzip uncompressed the tar.zip format.system monitor is used to view system information. system-config-package b. Package management c. bzip2 –d uncompress a tar.bz2 file.bz2 file c.

bashrc file in home directory of user Answer – a Explanation – The . Creating a . /etc/login d. /etc/bash b. A user Matt have a user id of 400. /etc/user.What line will you add in the file /etc/login.conf c.bashrc file in the home directory of the user is used to override the default values used for bash shell. What action should be taken by him? a. The default values can be overridden on the command line.conf d.conf Answer – b Explanation – The file contains the default values to be used while creating a user account.defs b.The content of /etc/skel is copied to the home directory of user when the user account is created. /etc/initial Answer – a Explanation -. You want to create a user account john. /etc/bashrc. Which file does contain global options to the bash shell? a. 76. d.defs c.defs c. MAIL_JOHN=/var/temp d.bashrc file in home directory of user b. MAIL_BOX=/var/temp c. /etc/login. 75. Creating a . /etc/bashrc Answer – d 72.179 71. A user wants to override the default values used for bash shell. Which directory contains the initial login and startup scripts? a. Which file does define the default values to be used while creating the user account? a.defs? a.What is the significance of it? . /etc/login. /etc/bash. /etc/skel b. The mail box of john should lie in the directory /var/temp. 74. MAIL_CONFIG=/var/temp Answer – a Explanation – The line MAIL_DIR is used to denote the directory where mailbox of a user will reside. Creating a ./etc/skel directory contains the initial login and a startup scripts. MAIL_DIR=/var/temp b.bash file in home directory of user c. /etc/userdefs d. /etc/login. Editing the /etc/bashrc file. 73.

So matt is an administrative user. What command will the system administrator execute? a. None of these Answer – d Explanation – The file /etc/shadow contains the user login name and encrypted password.What should be his approach? a. /etc/passwd b. Which graphical utility is used to manage users? a. Answer – c Explanation – User id less than 500 are reserved for the administrative users. Matt is an administrative user. The file/etc/passwd contains information about the user but at the place of passwd x character is written. If the –r option is not used then the home directory of the user is not deleted. userdel –r /home/user1 user1 Answer – b Explanation – The command userdel –r user1 is used to delete the account of a user along with his/her home directory. 81. and modify user and group information. userdel –h /home/user1 user1 d. usermod –s /bin/bash c.180 a. He wants the bash shell. System Administrator wants to delete the account of user user1 along with the home directory of the user user1. useradd –D –s /bin/bash new-user d. /etc/pass c. A user cannot have user id 400 c. User Manger b. Which file does contain the password of user? a. 78. /etc/password d. Matt is a non administrative user. User id 400 is of root user b. delete. userdel user1 b. Which command is used to invoke user Manager Utility? . 80. User Administrator c. 77. 79. A new user is working on the /bin/tcsh shell. userdel –r user1 c. d. User Admin d. usermod –D –s /bin/bash Answer – a Explanation – usermod command is used to modify the user information. User Configuration Answer – a Explanation –User Manager is used to create. usermod –s /bin/bash new-user b.

gpassword Answer – c 86. grpasswd b. Ask the system administrator c. /etc/group d. df /home/user Answer – c Explanation – The du command is used to check the space used by the files and subfolders of a . It means the password of user user-name is to be changed.The df command is used to display the amount of space available on a filesystem. If the command passwd is used alone it means the password of root user is to be changed. 85. su – c. grppasswd c. /etc/passwd c. system-config-usrs Answer – c 82. space /home/jack d. df /home Answer – b Explanation -.181 a. Check each file size and subdirectory size b. system-config-user b. gpasswd d. du /home/user d. /etc/groups Answer – d 84. The system administrator wants to see the disk space used up by user Jack. passwd root b. Which command is used to change the password of the root user? a. Which command is used to change password of a group? a. df /home/jack c. su root d. Which file does contain the information about the groups in a system? a. What should he do? a. passwd Answer – d Explanation – The format of passwd command id passwd user-name. system-config-usr c. 83. A user wants to list the space used up by files and subdirectories of his home directory. Ask jack about the disk space usage b. system-config-users d. /etc/gpasswd b. What sh0uld he do? a.

If root don’t enter user-name’s password then he won’t be able to execute user-name’s files d. No he can’t use the command directly c. The group demo is defined with the privilege of command shutdown –h now in /etc/sudoers file. How will you edit /etc/sudoers file? a. 91. Yes he has to enter the root password d. The group of the file will change to that of group’s Answer – a Explanation -. No the shell will prompt for password of user-name but root can choose not to enter the password c. What will happen ? a. Answer – d 88. No as it is different terminal session he won’t have root privilege in this session. Using gedit b.chown owner: group file-name case 1 if only owner is specified but group is not specified then the file owner is changed to owner and the file group is changed to that of login group of owner. Will the command execute successfully? a. A user entered the command chown : file-name. . Yes he will have to use visudo shutdown –h now Answer – c Explanation – The commands should be prefixed by the sudo command. Using vi c. Nothing b. No shell won’t prompt for user-name’s password Answer – d 89. The user of the file will change to that of user’s d. 90. He then opened a new terminal and ran command to mount a filesystem. A user Vishnu is member of group demo. Yes root user will have to enter user’s password b. Yes he will have to use sudo shutdown –h now d. A user ran su – command in a terminal (terminal1) and got privilege of root user. Using visudo d. Yes c.Will root has to enter the user’s password? a. Using geditsudo Answer – c Explanation – the visudo command is used to edit the /etc/sudoers file. No su – command don’t give root privilege b. Does Vishnu have privilege to run the command shutdown –h now? a. A root user used the command su – user-name where user-name is a non administrative user. The user and group of the file will change to that of user’s c.182 directory 87. Yes he can use shutdown –h now b.

Vmstat c. Which command will help the system administrator? a. Gives an error c. What will happen? a.183 Case 2 if owner and group both are specified then the file owner is changed to owner and file group is changed to group. Virtual d. A user issues a command kill 0. 93. System administrator wants to see the users currently logged into the system and the processes run by them. All process with pid >0 are re signaled. Users c.What will be the impact of the command? a. 92. The owner of the file will change c. Frees RAM memory b. The group of the file will change d. W b. gives the amount of free and used memory space of the system d.The vmstat command is used to displays the virtual memory statistics 95. 94. Which command shows the virtual memory statistics of a system? a. What does free command do? a. All of these Answer – b Explanation -. gives the amount of free and used memory of a filesystem Answer – c 96. Process with pid 0 is re signaled d. Iostat b. All d. Case 3 if owner is not specified but group is specified then the group of file is changed to that of group case 4 if owner and group both are not specified then nothing happens. all processes in current process are signaled. b. None of these Answer – a Explanation – The w command is used to view the users who are logged on the system and the processes run by them. Frees swap memory c. It also shows the time for which the system is running and the load average of the system. A user issues the chown user-name-group-name file-name command on a file filename which belongs to the root user. . Nothing happens Answer – a Explanation – The user don’t have privilege to change the file permissions of root user so he gets an error. He gets an error b.

System Information c. Which file does the command uptime use to present the output? a. number of users currently logged on b. percent CPU usage. 98. It don’t use any file Answer – a Explanation – The uptime command uses the file /proc/uptime for the information and formats them in user readable format. no of processes active. load average of the system c. /proc/sys/uptime c. % memory usage. Yes init process have pid of 0 c. System Monitor b. memory and swap information. no of processes sleeping. process information? a. 101. no of zombie processes d. /proc/uptime b. System Administration d. Log Configuration Answer – c 99. the command used for invoking the process. Which utility is used to view various system information like CPU usage. . no of processes active. No process can have pid of 0 b. Log Manager b. no of zombie processes usage detail of swap memory usage detail of RAM memory the information about the processes of the system like PID (process identification number). no of processes sleeping. total number of processes.The top command gives various information about the system number of users currently logged on load average of the system total number of processes.no other process can have pid of 1 or lower than that.184 Answer – d 97. network information. network usage information Answer – d Explanation -. A process pid can be set to 0 using renice command Answer – a Explanation – The lowest pid that a process can have is 1 which is pid of init process ( init is called father of all processes). System Log Manager c. SystemManager Answer – a 100. System Log Viewer d. May a process have pid of 0? a. Boot process have pid of 0 d. Which of the following information does top command not give? a. Which utility is used to see system log information? a. /sys/uptime d.

103. None of above d. 106. infomod modulename c. It is a signal used with kill command generally b. file name should be given from sysin d. For example kill –SIGKILL 5009 command gives the signal SIGKILL to process with pid 5009. /proc/mod d. A user wants to see the filename of a module currently loaded into the kernel. lists all the modules of kernel2.14 c. The file /proc/modules also contain the same information.uname -a prints all the information about the system.185 102. A user issues command insmod -. lsmod modulename d.the command uname is used to print various system information. uname -k Answer – c Explanation -. Which file contains the list of currently loaded modules in the kernel? a. modprobe modulename Answer – a Explanation –modinfo gives the details of a module loaded into the kernel. The format of the insmod command is insmod file-name . modinfo modulename b. Error will occur b. uname -r b.The insmod command is used to insert a driver module into the kernel. no such file is there Answer – b Explanation – The lsmod command is also used to list the modules currently loaded into kernel. none of the above Answer –c Explanation -. Which command is used to print the processor type of a system? a.6. It is a command c. 104. /proc/module b. Both of them Answer – a Explanation – The SIGKILL is used to signal a process. what should he do? a. /proc/modules c. What is SIGKILL? a. 105. uname -p d.What will happen? a. uname -n c.

nice b. priority d. renice c. which command should be used to load the module A into kernel? a. schedule Answer – b 111. Which configuration file and directory does modprobe command refer? a. Which command is used to remove a module from the kernel? a. The module A is dependent on module B. What command does administrator use? a. 107.186 if the file-name is – then the module is taken from the standard input.conf (if the file is present) and in the directory /etc/modprobe. modinfo Answer – b Explanation -. insmod b.insmod loads only the module mentioned on the command line.conf b. On business requirement your client wants to run the process A (already running on the system) with increased priority.d. priority 5 not allowed Answer – b Explanation -. /etc/modprobe.If the renice command is issued on user then the process priority of all processes of the user changes . modprobe -b c. What will happen? a. Modprobe -a b. rmmod d. process priority of all processes belonging to user is changed to 5 c. modprobe -r d.The modprobe command inserts other modules which are dependent on the module being inserted using the command. both of them Answer – d Explanation – modprobe looks for the configuration file /etc/modprobe.d d. 108. no change in priority d. modprobe c. none of them c. Error occurs no pid mentioned b. The command renice 5 -u Jack is issued. /etc/modprobe. modprobe -d Answer – c 109. 110.

/var/klogd. It uses the configuration file /etc/syslog.log c. The file defines the files where different system messages will be written. In which file is cron utility log the messages? a. none of the above Answer – a 114. No output b.conf Answer --d 115. so dmesg command prints no output. /etc/sysconfig/syslog.allow a. 113.pid b. /etc/syslog. /var/log/cron/cron. kernel messages displayed c.log d. /etc/sysconfig/syslog. Which configuration file does syslogd use? a. /etc/syslog d.conf c.187 112. /etc/sysconfig/syslog b.conf. help options displayed for dmesg Answer – a Explanation – dmesg when used with the -c option clears the kernel ring buffer. error d. A user issues two commands back to back dmesg -c dmesg What will be the output of second command? a. Which file should he/she edit? a.pid d. What system administrator does? Add name on mac in /etc/at. A user wants to log the boot messages in the file /var/log/boot.conf Answer – d Explanation – syslogd supports the system logging. 116. Which file does contain the pid of klogd daemon? a. /var/log/cron. /var/run/klogd Answer –a 117. /etc/sysconfig/syslog b. . System administrator wants to allow the user Mac to access the at facility.conf c. /var/run/klog. /var/run/klogd. /etc/syslog. /etc/syslog d.pid c. /var/log/cron b.

In which directory the jobs scheduled by the batch command spooled? a.allow lists the name of the users who are allowed to use the at command.The user names should be one in a line and there should not be whitespaces between the username (on a line). jack e. jack:jill c.deny command lists the name of the users who can't use the at command. Add name on mac in /etc/at c. Jack. both of them d. /var/spool/at b. none of them c. atq Answer – c Explanation -.atq the atq command is used to list the scheduled job.jill d. jack. 121. at -l b.allow and /etc/at.spool d. what will be content of file /etc/at.188 b. If the /etc/at. 122. jill Answer – d Explanation -.jill b.spool Answer – a Explanation -.The scheduled jobs which are submitted using the at command and batch command are spooled in the directory /var/spool/at. error condition Answer – c 120. /var/spool/batch. The files contain the information about the commands along with the environment under which the commands were scheduled. System administrator allows users Jack and Jill to use at facility. no user of the system c.allow? a.deny are not present. /var/spool/at. /var/spool/batch c.The file /etc/at. All the users of system b. On a system the files /etc/at. Which command is used to create a crontab file? . only root user d. 118.deny d. Which command is used to list all the scheduled jobs? a. don't add name on mac in /etc/at. Same as at -l. any of the above Answer – a Explanation -. 119. Which users can use the at facility? a.

/etc/httpd. /var/run/httpd. /etc/crontab b. Which directory contains the library modules for the httpd server? a. . /var/run/httpd Answer – b 126.conf d. service http on Answer – b 125. /etc/httpd/conf/httpd. /etc/cron c.conf b.conf. The cron daemon reads the /etc/crontab file. /usr/lib/httpd/module c. 123.The crontab -e command is used to create a crontab file. The conf sub directory of /etc/httpd directory contains the main Apache configuration file httpd. /lib/httpd/modules d. /etc/httpd/conf. service httpd start c.The Apache web server configuration directory is /etc/httpd. service httpd on d.189 a. Which command is used to start the Apache web server? a. /usr/lib/httpd/modules b. crontab -e c.pid b.the file /etc/crontab file is system crontab file. The name of the file is same as the name of the user. service http start b. crontab -k Answer – b Explanation -. /etc/cron. crontab -l b. /var/run/http. /lib/httpd/module Answer – b 127.conf Answer – c Explanation -. none of the above d. Which file does contain the pid of the httpd daemon? a.pid c. crontab -d d. Which file is system crontab file? a. /etc/httpd/conf c. Which file does contain the configuration information about the httpd server? a. /var/run/http d. The crontab file is created in the /var/spool/cron directory. 124.d Answer – c Explanation -.

system-config-https d. Settings for virtual hosts. Which command invokes the HTTP Server Configuration utility? a. The conf. and log files are kept will be /etc/demo. ServerRoot is not a directive.190 128. b. Configuration directives for Apache web server process as whole. load libraries related to Apache server c. The DocumentRoot directive of main apache web server configuration file is set to “/home/demo”. Configuration file related to Apache client b. system-config-http c.conf? a. d. HTTP Server Configuration c. database (Mysql) and the authorization modules. Where the users need to put the html files to be served by the server in response of client request? .d directory? a. b.conf file the user set the directive ServerRoot “/etc/demo”. HTTPD Server Configuration b. HTTP Configuration d. What is the content of /etc/httpd/conf. error. Perl. All of the above Answer –d 131. system-config-httpconf Answer – a 133. nothing d. Which is the graphical utility for httpd server configuration? a. Configuration parameters for the main server c. The top of the directory tree under which the server's configuration. error. and PHP). Answer – a Explanation – ServerRoot directive defines The top of the directory tree under which the server's configuration. system-config-httpd b. What are the sections of Apache web server main configuration file /etc/httpd/conf/httpd. and log files are kept 129. HTTPD Configuration Answer – b 132. In the /etc/httpd/conf/httpd. no changes d. What will be the impact? a. Answer – d 130. Error value c.d contains the configuration files relating to the languages (like Python.

a Domain Name System lookup program dnsserver and some other modules for authentication and management tasks. /var/log/http d. none of them Answer – a Explanation – DocumentRoot defines the directory where the user will place the contents or files he/she wants to get handled by the web server. crit. 134. Warn b. notice. squid. alert. all of them Answer – d Explanation -.conf b. none of them d.html file and kept it in this directory and opened the address http://localhost using any web browser then the contents of index.conf Answer – c 138.dsnserver d.debug info.conf c. 137. /var/log/apache c.conf d. /etc/squid/sqd. What are the two main programs consisting Squid server? a. For example if you create an index. 135. /etc/squid/squid. /var/www/html c. What are the possible values of LogLevel directive in Apache web server main configuration file? a. /etc/squid. Which directory does contain the log information about the httpd server? a. squid. error.squid consists of a main server program squid. warn.squiddemo Answer – c Explanation -. both of them d. On which port does squid listen by default for http? .log Answer --a 136. /etc/squid/squidd. and emerg are possible value of LogLevel directive. /var/log/httpd b. Which is the main configuration file for squid server? a. squid.dns c. /var/log/httpd.html file will be displayed. /home/demo b.dnssrv b.191 a. debug c. squid.

conf . In what forms does http_port socket address be defined in the squid server main configuration file? a. objects used very often Answer –d 143. hostname with port. Objects used often b. Objects in use b. 413 d.conf b. and IP address with port. http_port 4000 Answer – d Explanation -. hostname with port c. objects that are in use Answer –d 142. ram_mem of /etc/squid/squid.The socket address can be defined in three forms: port alone. 80 c. objects which moved out d. Port alone b. 3120 Answer – a 139. An administrator wants to change the default http port that squid listen to 4000.What should he/she do in main squid configuration file? a. What are hot objects in connection with squid server? a. How will you set the RAM memory used to handle the in transit and hot objects of squid server? a. What do you mean by in transit objects in terms of squid server? a. 3128 b. objects very complex c. port 4000 c. httpport 4000 d. objects not in use d. none of them d.192 a. cache_mem of /etc/squid/squid. objects never used c. RAM_mem of /etc/squid/squid.http_port define the socket addresses where Squid will listen for HTTP client 140.conf c. all of them Answer – d Explanation -. 141. httpd_port 4000 b.

/var/spool/squid c. Can the line http_access deny all be added in the /etc/squid/squid. mem_ram of /etc/squid/squid.0. Which is the default cache directory for the squid server? a.65. An administrator writes the below line in main squid server http_access allow 192. gives name src to all the addresses Answer – a Explanation -. /var/spool/cache d. no deny is not allowed c.pid d. 144.conf file? a.0. hot objects (objects that are used often).0 of main squid server configuration file? a. /var/run/squid c. gives name acl to all the addresses d. and negative cache objects (recent failed requests). Which file does contain the pid of the squid server? a.168. gives name all to all the addresses b. no http_access is not allowed Answer – c . ip address should be with netmask Answer – a Explanation – http_access define which clients can access the squid server for http contents.pid Answer – a 146.0. Wrong format c.0/0. yes it can be d.0.168.The acl tag is used to define access control.conf Answer – a Explanation – cache_mem sets the cache size (RAM memory used to store the in transit objects that is objects that are in use).65 can access the http content.56. /var/run/squid. 148.pid b.56.193 d. No all not allowed b. b. allow is invalid d. /var/run/squidd. what does it refer? a. /var/run/squid/squid. gives name all to no address c. the form of acl tag is acl name type string or file 147. What is the meaning of the line acl all src 0. /var/spool/squid/cachedir Answer – b 145. /var/spool/squid/cache b. 192.

b.conf c.conf d.cgi. root c. 149. /etc/squid/cachemanager. Which is the configuration file for the squid daemon? a. 153. Answer – a 151. /etc/sysconfig/squid. What is cache manager? a. /etc/cachemgr. all of them Answer – a 150.conf is configuration file for squid server. nothing d. /etc/squid/cache.conf b. Used to see amount of cache space used by a process c.d/squid. Which is the configuration file for the cache manager? a.conf b. /etc/squid/squid. Cache-manager command b. 154. Under which user does squid server run? a. What does the line SQUID_OPTS="-D" in the squid daemon configuration file mean? Squid can be started without having internet connection load default values from configuration file a. c.conf d. b. /etc/sysconfig/squid Answer – d Explanation -. using http://server-name/cgi-bin/cachemgr. /etc/squid/cachemgr. it is daemon process name of squid server.The cache manager can be invoked by typing the address http://servername/cgi-bin/cachemgr./etc/sysconfig/squid is configuration file for squid daemon and /etc/squid/squid. squiduser d. Squid b. /etc/sysconfig/squid. Using system-config-cache d. How is the cache manager invoked? a. The cache manager is a cgi utility for displaying information about the squid http proxy process as it runs.194 Explanation – line means the http content is denied for all the clients.conf c.cgi.conf Answer – c 152. . all of the above Answer – b Explanation -.

runs squid in safe mode d. use NISGRP c. squid -k reconfigure b. service squid reload Answer – c 157. /etc/init. squid reconfigure d. service nfd start d. What does the option secure mean in case of /etc/exports file? a. service nfsd on Answer – b 158. Service squidd restart b.d/squid restart d. use SELinux d. use @NISGRP d. 160. An administrator wants to add a NIS group NISGRP in /etc/exports file? Which of the following is true? a. squid -k configure c. Which command does make squid to reread the configuration file? a. all of above Answer – a Explanation -. Service nfsd start b. service nfs start c. use #NISGRP Answer – c Explanation -. Invalid option b. Which command is used to start the NFS services? a.The access can also be defined in terms of the NIS group.-D option disables initial dns checks so squid can be started without having internet connection 155. 159.the client computer should connect using the port below 1024. service sqd restart c. Not possible b. none of above Answer – d Explanation -.if the insecure option is specified then any port can be used.195 c. Which command is used to restart the squid daemon? a. An administrator wants to add host1 and host2 in /etc/exports file corresponding to . use PAM c. The nis group can be preceded by the @ of sign before the nis group name. squid configure Answer – a 156.

myhost.The directories mentioned in the /etc/exports file can be exported that is made available to the network using the exportfs command or rebooting the system or restarting the NFS service.com entry in the file /etc/exports. exportfs c. host1:host2 c.myhost. both of above d.maps the root user of client (uid 0 gid 0) to anonymous uid and gid. A system administrator has made *. Which graphical utility is used to create the /etc/exports file? a.196 the directory /home/user.myhost (means new belonging to domain myhost) 162. 163. The default value of anonymous uid and gid is 65534. don't allow client root user to login c. maps the root user of client to anonymous user Answer – d Explanation -.host2 b. export d. The combination of ip address and hostname can also be used. 161. Which of the following is valid entry? a. NFS Server Administration Answer – b . 164. NFS Server Manager d.com b. What is meaning of option root_squash in the file /etc/exports? a.example. host1 host2 d. Which command is used to export all directories listed in the file /etc/exports? a. Exports b. New. maps client root user to NFS server root user d.example.Multiple hostnames or Ip address can be entered separated by blank. NFS Server Configuration c. NFS Configuration b.The anonymous uid and gid value can be changed by using options anonuid and anongid.example.* character matches any number of characters in a domain name that is * matches for myhost (of option b) but not of option a as in option a there was new. exportsf Answer – b Explanation -. Host1. all of above Answer – c Explanation -. Which of the below address match the entry? a.com c. none of above Answer – b Explanation -. Maps root user to client to user jack's account b.

system should be rebooted Answer – a Explanation – before accessing a NFS directory the directory should be mounted using mount command or using autofs 167. and rmtab files which contain the information about the exported files. Which command is used to invoke the NFS server configuration utility? a. 169. nfstat Answer – a Explanation -. /var/log/nfs/nfs. System-config-nfsd b. nfsstat -s b. Which command is used to invoke the Samba Server Configuration utility? System-config-samba system-config-smb system-config-sambad a. Samba Server configuration c. The directory is mounted b. the directory is unmounted c. /var/log/nfs c. What operation is performed before user accesses a NFS directory? a. Smaba Server configuration b.The nfsstat command is used to display statistics about the NFS server and client activity 168.log Answer – a Explanation -. no operation is done d. c. The files xtab. Which utility is used to configure samba server? a. both of them d. system-config-nfs c.197 165. b. Which command is used to display server side NFS information? a. none of them Answer – b 166. /var/spool/nfs d. etab. /var/lib/nfs b. nfs d.The var/lib/nfs directory is used to keep information about the exported directory. Which directory does contain information about the exported directory using the NFS? a. nfsstat -c c. . Samba configuration d. Smaba configuration Answer – b 170.

The /etc/samba/smbusers file contains the list of samba users.198 d. smbclient -L d. /etc/samba/samba.conf d. system-config-smbd Answer – a 171. smbstatus b. user=jack c. user:jack d. The Unix username and windows user name of Jack are same (it is Jack). An administrator wants to add a user Jack as samba user. service sambad start Answer – c 175. Service smbd start b. Which command is used to start the samba server? a. jack:jack Answer – a Explanation -. /etc/samba. /etc/smb. service samba start c.conf c. none of them Answer – c Explanation – the command is used to check whether the samba service is running on the system and the share created on the system is being shared as the user wanted it to be. Which file does contain the name of the all samba users? a. Which command is used to view the samba server status information? a. /etc/samba/smbusrs d. 174.conf b.what should be the format of entry in samba user file? a. smb status c. Which of the following is main configuration file of samba server? a. To add a new samba user vishnu as in above case enter below line in the /etc/samba/smbusers file vishnu = vishnu the left hand side denotes the Unix user name and the right hand side denotes the windows user name. /etc/smbusers c. /etc/samba/sambausers Answer – a 173.conf Answer – c 172. service smb start d. jack=jack b. /etc/samba/smbusers b. /etc/samba/smb. .

Service ftp start b. /etc/ftpd/vsftpd. users not in file /etc/vsftpd/user_list Answer – c Explanation -. c. /etc/vsftpd/vsftp. local_user=YES b. 180. d. jack john. An administrator wants the local users to use the ftp service.jack john:jack john . All users b. b. jack Answer – d Explanation – the users should be listed one in a line.199 176. An administrator wants to list the names of two users John and Jack in /etc/vsftpd/user_list file.conf b.conf d.conf c.local_enable parameter is when set to YES then local users can login to ftp server if set to NO then local users can not login to ftp server. /etc/ftp/vsftpd. Which of the following is valid entry? John.The /etc/vsftpd/user_list contain list of users which are allowed access if userlist_enable=NO. Which command is used to start the ftp server? a. users in file /etc/vsftpd/user_list d. service vsftpd start d. local_users=YES c. Which is the main configuration file for the vsftpd server? a. 179. a. local_usr=YES d.conf Answer – d 178. Which users are allowed to login into ftp? a. /etc/vsftpd/vsftpd. which of the following lines is to be added in the ftp server configuration file? a. service vftpd start Answer – c 177. In the main configuration file of ftp server the directive userlist_enable=NO is used. service ftpd start c. no users c. local_enable=YES Answer – d Explanation -.

/var/log/vsftp. Which command invokes the ftp command prompt? a. put c. copy d.log b. A user wants to copy a file from current directory of remote system to current directory of local system. Which is the main configuration file for the LDAP server? a. system-config-ftp c. Which command is used to invoke the Very Secure FTP daemon Configuration utility? a.a 185. ftp d. system-config-vsftpd Answer –d 186. Very Secure FTP Configuration c. Get b. VSFTP daemon Configuration d. system-config-ftpd d. /var/log/xferlogd c.200 181. Which files contain the logging information about the ftp server? a. vsftp b. System-config-vsftp b.conf Answer – a 187. VSFTPD Configuration Answer -. ftpd Answer –c 184. /etc/ldap/ldap. 182. none of them Answer – d Explanation --The file /var/log/vsftpd.conf c. What is the significance of the sizelimit option in the main configuration file of . paste Answer – a 183. Which ftp command should he/she use? a.log and /var/log/xferlog files contain the logging info about the ftp server. Very Secure FTP daemon Configuration b. both of them d. sftp c.conf b.conf d. /etc/ldap/openldap. /etc/openldap/openldap. /etc/openldap/ldap. Which graphical utility is used to configure the ftp server? a.

conf? a. ad schema in /etc/openldap/openldap. A user makes changes in the file /etc/openldap/ldap. A user created a file which contains the directories of information he/she wants to add into an ldap server. Memory size limit b.conf d.To create the ldap directories user have to include the ldap schema he/she is using in the configuration file /etc/openldap/ldap. 188.conf b.LDAP Data Interchange Format (LDIF) 190. Which directive is used to include a schema in the file /etc/openldap/ldap.SIZELIMIT specifies the limit of results which will be returned when the ldap server is searched. none of above Answer – a Explanation -. Ldap b.TIMELIMIT specifies the time limit which the ldap will take to answer the search request. 189. He/she wants to check . nothing is to be done c. ldif c. Before using a schema to create ldap directory information what a user should do? a. ldaf d. number of concurrent processes d.conf. make the schema file Answer – a Explanation -. Add the schema in /etc/openldap/ldap.201 ldap? a. What should be file extension? a. The timelimit of 15 in above example means that the ldap will take 15 seconds to answer a search request. Copy b. 191. the number of records in ldap c. Maximum time taken by ldap to answer a search request b. Maximum time taken by ldap to add a entry d. make Answer – c 192. If the value is set to 12 then 12 results will be returned as the output of a search. ldfa Answer – b Explanation -.conf using the include directive. include d. Minimum time taken by ldap to answer a search request c. use c. What is the significance of the timelimit option in the main configuration file of ldap? a. specifies the limit of results returned Answer – d Explanation -.

ypdomainname d. all of these Answer – d Explanation -. domainname b. /etc/nis.conf c.conf d. 193. No he can't do this using any command b.conf b. /etc/ldap/schema/ c. /etc/nis/yp. yes using slapd -t c.conf Answer – d 197. Can he/she do this? a. and ypdomainname is used to set the NIS domain name of the system 196. The SIZELEIMIT option is used to define the number of rows returned. which command is used to set the nis domain name of a system? a. /etc/openldap/schemaldap Answer – c 195.The command domainname.202 whether he/she made any syntax error. /etc/yp. ldap b. /etc/openldap/ldap/schema/ b. nisdomainname c.The command slapd -t is used to check the /etc/openldap/ldap. /etc/yp/yp. The number of entries which should be returned using the ldapsearch command is defined in the configuration file /etc/openldap/ldap.Ldapsearch is used to search the ldap directory using the search parameters. Which command is used to search for an entry in the ldap directory? a. Which directory does contain the default ldap schema file? a. ldapsrch Answer – c Explanation -. ldapsearch d. Which command is used to start the NIS server? service ypserver start service yp start a. yes using ldap -t d. yes using ldcheck Answer – b Explanation -. Which is the main configuration file for NIS server? a. or nisdomainname. ldap -s c. 194.conf. b.conf file for the syntax change. /etc/openldap/schema/ d. .

The file names which should not be shard in commented out. port (to allow access from port below 1024).The security can have values as none (to allow access).conf c. deny d. Make in /var/yp directory Answer – b Explanation -. port c. /var/yp/securenets c.203 c.conf d. all of these Answer – d Explanation -.the NIS database of the files configured to have shared by the NIS server is .conf d. /var/yp/access. ypinit d. 200. Sharefile in /var/yp directory b. Makefile in /var/yp directory c. ypdata c. service ypd start Answer – c 198. ypserv Answer – c Explanation -. Which file does contain the entry for the client computers with access to NIS server? a.conf Answer – a Explanation -. service ypserv start d. deny (denying access) 202. Which file is used to map NIS? a. None b. /etc/nsswitch. Makefile in /var/nis directory d. Which file contains the name of the files being shared by the NIS server? a. The files /etc/passwd and /etc/group are being shared by the NIS server. 201. Which command is used to create a NIS database? a.conf is used to include the NIS in the search path of the files 199. yp b.The /etc/nsswitch. /etc/nisswitch. /etc/nwitch.conf b.conf? a.the Makefile in the directory /var/yp is edited to include the files which files are being shared by the NIS server. /etc/nswitch. /var/yp/secure Answer – b Explanation -. What are the valid values of security field in file /etc/ypserv.The client’s computers who are allowed access the NIS server information is added in the file /var/yp/securenets file. /var/yp/securenet b.

206.conf d. How can administrator decide number of client’s assigned address using the DHCP server? a. For every client which has been assigned address one set of lease line is written in the file /var/lib/dhcp/dhcpd. Which command is used to enable the dhcp server? a.pid. chkconfig dhcp on Answer –b 204. chkconfig dhcpd enable d. /var/run/dhcplient.204 created by using the ypinit command. all of there d. 203. What does the file /etc/dhcpd.leases b. Answer – b . using file /var/lib/dhcp/dhcpd.pid. Which of the following is dhcp server configuration file? a. /var/run/dhcpclient.pid. /etc/dhcpd/dhcpd. Which file does contain the process id of the dhcp client? a. Which graphical utility is used to configure the dhcp client? a.conf Answer – c 205. /etc/dhcpd. chkconfig dhcpd start b. /etc/dhcp/dhcpd. d.leases.pid. /var/run/dhclient.leases contain information if a client has been assigned address by a dhcp server.The configuration file is used to list the range of ip address out of which the server will assign an ip address to a computer on its network. 207. using file /var/lib/dhcp/dhcpd.conf b.num d. none of these Answer – c 208.count c. It can also contain option to assign a particular address to a definite Ethernet address on the network.stat Answer – a Explanation -.The file /var/lib/dhcp/dhcpd. using file /var/lib/dhcp/dhcpd. System-config-network b. Using file /var/lib/dhcp/dhcpd. /etc/dhcp. c. neat c. b.conf c. /var/run/dhpclient.conf contain? Answer -. chkconfig dhcpd on c.

none of the above Answer – a Explanation -. /etc/dhcpdclient. Which command is used to invoke BIND Configuration GUI? a.d/name start d. /etc/name. service name start Answer – b 211. 215. /etc/dhpclient. BIND Configuration c. /etc/init.conf d. /etc/dhcplient. /etc/init. system-config-named c. Which is the main configuration file for the named daemon? a. What is the function of acl directive in the file /etc/named. Which command does check file for syntax error? . Which configuration file does dhcp client use? a.conf? a. system-config-dns Answer – c 213.conf b. BIND Server Configuration GUI d. system-config-name b. Which command is used to start the named server? a. /etc/named. An administrator made changes to file /etc/named.d/named start c. to define performance option c.conf Answer – d 210. BIND Configuration GUI b.conf c. /etc/dhclient. BIND Server Configuration Answer –a 212.conf d. To define access control list b. to define server pid d.conf b.conf c.conf. Which graphical utility is used to configure the DNS server? a. service bind start b.205 209. system-config-bind d. /etc/named/name. /etc/named/named.conf Answer – c 214.acl – access control list used as acl “description “{ip address}.

txt Answer – c 218.It is used to get the ip address corresponding to the hostname and vice versa. namedcheckconf Answer – a 216.txt /var/named/data/named_stats /var/named/data/named_stats. Named-checkconf b. b. zonecheck Answer – a Explanation -. checkconf c. hostname c. domainchk d. whois c. none of these Answer – a Explanation -. named-checkzone b. c.conf file. Which command is used to check the syntax of the zone files? a. How can you check the availability of domain name? a.Named-checkzone is used to check the syntax of the zone files which should be created by the user in the /var/named directory after creating the file /etc/named.206 a. How can you get the hostname of your system from ip address? a. checkzonenamed d. .db /var/named/data/dumb. checkzone c.db /var/named/data/named_dumb. you have chosen a domain name for your system. host b.db a. 217. who b. Which file does contain the statistics of named daemon? /var/named/data/named_statistics.txt /var/named/data/stats. checkfile d. domaincheck Answer – b Explanation – whois command is used to search for the availability of domain name format whois domain-name 219. Format is host host-name host ip address 220. gethost d. Which file is dump file for the named daemon? /var/named/data/cache_dumb.

db file.mc. define domain names in /etc/mail/local-host-name c.The file /etc/mail/domaintable contain the domain name mapping that is mapping the old domain name of the network to the new one. What command does server the purpose? .cf b.deny c. You want to configure the sendmail server to handle two domain names. Can't be done b.allow d. Domain name mapping in file /etc/domain b.mc c. location of the log files and database files. both of them d. 222. /etc/mail/access.the file /etc/mail/local-host-name define the domain names for which the sendmail server of the system will act as a mail server.The main configuration file for the sendmail is /etc/mail/sendmail. /var/named/data/cache_dumb Answer – a 221. define domain names in /etc/mail/domain-name d. Which file is used to define the users and clients for accessing the sendmail server? a.207 d. What should the administrator do? a. use command domainname c. Many options which sendmail uses are also defined in the file /etc/mail/sendmail. The domain name of your system changed from oldone to newone. After changing the /etc/mail/access file a user wants to create the access. 224. domain name mapping in file /etc/mail/domaintable d. What will you do? a. none of them Answer – c Explanation -. /etc/mail/sendmail.The /etc/mail/access file defines the hosts and users from which the mail server sendmal will accept mail for delivery or relay. 225. /etc/mail/access b.mc contains the sendmail default values like the location of the other configuration files to be used by the sendmail.cf. /etc/mail/security Answer – a Explanation -. 223. /etc/mail/access. /etc/mail/sendmail. none of above Answer – c Explanation -. Which of the following files are configuration files for the sendmail server? a. The file /etc/mail/sendmail. define domain names in /etc/mail/virtual Answer – b Explanation -.

make access c. There is also a file /etc/postfix/main. create access d.conf /etc/postfix/master. /var/spool/mail/stat c.cf d. postfix queues and locations to be used for logging. c. b.conf a.cf /etc/postfix/postfix. 229. What actions does sendmail do on a mail? a.db file you want to create for example make virtusertable. /var/spool/mail/statistics b.cf Answer – a Explanation -. 226.208 a.cf /etc/postfix/daemon.db b. ERROR: user defined text message – inform the user why the server did not relay the message. REJECT c. /var/spool/mail/stats d.cf is the main configuration file for the postfix server. both of them d. mailbox.cf b. d.There are four actions which the sendmail server can take RELAY – the server sends the message to the mail server request in the mail.cf file and is used for reference in case user has made any wrong changes in the file main. .the /etc/postfix/main.db Answer – a Explanation -. /etc/postfix/main.Which file does contain collected statistics from sendmail? a. Make access.The user wants to make the individual configuration files into the . It defines the hostnames and domain names. REJECT – the message is rejected and sender is informed that the message is rejected. 227. none of them Answer – c Explanation -. Which is the postfix daemon configuration file? /etc/postfix/master. create access.cf. /etc/postfix/postfix.default which is exact copy of the main.db with the .cf.db. /var/spool/mail/statistic Answer – a 228. /etc/postfix/main.db replace the filename access.mc c. DISCARD – the message is rejected and sender is not informed that the message is rejected. Which is the main configuration file for postfix server? a.db files then use the following commands cd /etc/mail make access. RELAY b.db makes the file virtusertable. /etc/postfix/post.

/etc/postfix/access.and /var/log/maillog. all of above Answer – d Explanation -.the file /etc/postfix/postfix-files contain the directory and file permissions set by the postfix server. /etc/alternative b. The file /var/log/maillog.2 d. /etc/services/alternatives d. /etc/postfix/permit-files c./var/log/maillog.209 Answer – a Explanation -. 231. c. Which files does contain the sendmail and postfix server log information? a. /etc/service/alternatives Answer –b Explanation -.2 contains log information about each and every mail received and send by the postfix and sendmail server. Which file does contain the alternative mail services? /var/lib/alternatives /var/lib/alternatives/mta /var/lib/alternative/mta a.the log information about the postfix and sendmail server is logged in the file /var/log/maillog. /etc/postfix/access b.2. Which file does contain the directory and file permission set by postfix? a.The file /etc/postfix/master. /var/log/maillog.1 c. 230.the file /etc/postfix/access file is used to define the users and system which have access to use the postfix server.The contents of the directory /etc/alternatives displays the default services configured on the system 234.deny c. /etc/postfix/permission-files Answer –a Explanation -. /etc/postfix/security Answer – a Explanation -.cf is the main configuration file for the postfix daemon process.allow d.1. Which directory does contain the default services configured on the system? a. /etc/alternatives c. /etc/postfix/postfix-files b. b. /etc/postfix/access. /etc/postfix/postfix-file d. 233. . /var/log/maillog b. Which file is used to define the users and clients for accessing the postfix server? a. 232. /var/log/maillog.

max_run_mail_processes c. /etc/dovecot.conf Answer – d 239. base_run c.conf c.d b. Which directory does contain the files corresponding to the services supported by xinetd? a. Which directive of dovecot configuration defines maximum number of running mail processes? a.conf d.d/services Answer -.a . /etc/xinet.conf Answer – a 236. 238. max_mail_run_processes d. /etc/dovecot/dovecot. /etc/xinetd/xinetd. Which is the main configuration file for the dovecot services? a. Which directive of dovecot configuration file does set the directory path containing run time data? a. /etc/dovecot. max_mail_processes b. /etc/xinetd. main_dir d. /etc/xinetd. /etc/dovecot.conf b. base_dir Answer – d Explanation – base_dir defines Base directory where to store runtime data 237.cf c.d/service d. /etc/xinetd c. /etc/xine. run_dir b. /var/lib/alternatives/mta-alternate Answer – b 235. mail_processes Answer – a Explanation -. /etc/xinetd. /etc/xinetd. Which configuration file does xinetd use? a.max_mail_processes defines the maximum number of mail processes that can run simultaneously.conf b.mc d.210 d.

system-config-securitylevel Answer – d 244. none of these Answer – a 242.The client A is listed in file /etc/hosts. Which command is used to invoke security level configuration? a. No b.allow and c in /etc/hosts. system-config-level c. security Level Configuration d. /etc/sysconfig/ipchains d. This file is first scanned by tcpd.The directory /etc/xinetd. This file is scanned by tcpd after scanning the /etc/hosts. There are three clients A. 241. deny? a.d contains files corresponding to the services which xinetd will start if connection is made to that port number. What is the significance of ALL in /etc/hosts. /etc/sysconfig/iptables c.The file /etc/sysconfig/iptables contains the security level currently imposed on the system. yes Answer – b Explanation -. security Level Configurations c. allow and /etc/hosts. security Configuration b. security Level Manager Answer – c 243. Which graphical utility is used to configure security level of a system? a. /etc/sysconfig/ipchain Answer – b Explanation -. /etc/hosts. If an address is not specified in any file then the connection is allowed. These services are called on demand services. system-config-securelevel d. This file is written by the Security Level Configuration utility. both of these d. . /etc/sysconfig/iptable b.deny – it contains the list of ip address and subnet masks of clients who are not allowed connection. all is specified for all services c. and C. system-config-security b.allow – it contains the list of ip address and subnet masks of clients who are allowed connection. All is specified to denote all clients b. 240.deny.allow file. B. Administrator wants to allow A and B for xinetd services (with tcp wrappers)./etc/hosts.211 Explanation -. Which file contains the current security level settings? a.Is the configuration right? a.

/etc/pam.d/conf c. Where will the configuration file for PAM find? a. 248. Which command is used to save the rules from kernel and install them in a configuration file? a. iptables-save b. iptables-load c. The files in the directory /etc/conf. /etc/pam. Which of the following account types does PAM allow? a. done c. auth b. 250.conf is ignored if the files in the directory /etc/pam. and optional. The /etc/pam.PAM allows four types account.d b. /etc/pam.The valid values for the control are include. password c. password. none of them d. mandate b.The contents of the file /etc/pam.d correspond to the services which use PAM for authentication. /etc/sysconfig/iptable-config Answer – a Explanation -.212 245. both of them d. and session.d/pam d. sufficient. both of them Answer – c Explanation -. /etc/sysconfig/iptables-nat c. iptables-kernel d. load additional iptables modules. The additional modules help in NAT filtering and helpers. iptables -S Answer – a 247.d are present.The file /etc/sysconfig/iptables-config is used to. Which file does configure the modules needed for NAT filtering? a.conf file is absent on a system. /etc/sysconfig/iptables-config b. . 246.d Answer – d Explanation -. What are the valid control types for a PAM configuration file? a. none of them Answer – c Explanation -. Which directory does contain the PAM modules? /lib/security a. required. 249. authentiction. /etc/pam/pam. /etc/sysconfig/iptables-filter d.

/etc/sysconfig/selinux. SELinux manager Answer – c 252. /etc/sysconfig/selad c. /etc/sysconfig/selinux b.The SELinux administration changes the values in the SELinux configuration file /etc/sysconfig/selinux . /lib/PAM c. /etc/PAM Answer – a 251. system-config-se Answer – a 253. Which command is used to invoke the SELinux administration utility? a. disable d. /etc/sysconfig/selinux. /lib/security/PAM d. SELinux configurations c. system-config-selinux b. /etc/sysconfig/selinux Answer – d 255.SELinux policies are not enforced that is are disabled. Which graphical utility is used for SELinux configuration? a. What of the following is valid SELinux enforcing mode? a. /etc/sysconfig/selinux. permissive b.mc c. all of them Answer – d Explanation -. /etc/sysconfig/seladmin Answer – a Explanation -.cf d. system-config-SELinux d. /etc/sysconfig/seladm d. 254. Disable-. enforcing c.enforcing – SELinux policies are enforced. SELinux administration d. SELinux configuration b. Permissive – SELinux policies are checked but policy issues warning instead of enforcement.conf b.213 b. system-config-SElinux c. Which configuration file does SELinux use? a. Which file does SELinux Administration utility change? a.

119-20. 193 access control list 145. 207. 164-5.214 INDEX* A access 97. 183. 81.conf 198 etc/sysconfig/selinux 213 etc/syslog. 115. 167 anaconda boot prompt 164-5 anaconda ks 165 anongid 118. 198-9. 151. 140. 169 amount 85-6. 113-14. 193. 211 AGE 68 AGENT 97 Alias SERVICES 79 aliases 70-1.conf 205 etc/dhcp. 161. 208 AccessFileName 103 access.conf 210 etc/groups 181 etc/ldap/openldap.conf 202 filesystem 183 ftpd 200 gpassword 181 hd0 164 kickstart-file/install/linux. 105. 125-6. 103. 138-9. 193 actions System Tools 152 address 61.conf 205 etc/openldap/schemaldap 202 etc/PAM 213 etc/samba/sambausers 198 etc/smb. 192-3.conf 199 etc/xinetd.conf 194 etc/dhclient. 155. 32.com 165 . 145. 205 acl tag 113. 129. 205 access control section 9. 196 anonymous user behavior 132 answer 3. 116-17.log squid. 204. 134. 134 ALT 30. 153. 150-1.conf 204 etc/dovecot/dovecot. 113 Access file 147. 132. 193-4. 208-9 [4] access control 113.conf 200 etc/name. 156.conf 187 etc/vsftpd/vsftpd. 211 assigned 140.out store. 26.master 174 etc/bashrc 179 etc/cachemgr. 122. 204-5. 194 anaconda 14. 99. 201 command xvf 178 dev/sda2 174 device-name raid-device-name 175 dumb 207 error condition 188 etc/autofs. 204 lp 117 adm 78-9.log 112 account system-auth 160 user jack's 196 acl 113. 122. 191. 196 anonuid 122 Anonymous login 127 anonymous uid 118. 103-4. 172 access tab user 125 access.conf 210 etc/yp. 203.db 147-8.log cache. 130 Administrative group 73 administrator 66. 195. 79. 135. 107.

188 atrm 95-6 attributes 55. 118. 49. 67. 153-4.215 lib/httpd/module 189 modified 176 namedcheckconf 206 paste 200 renice command 184 schedule 186 security Level Manager 211 service name start 205 service sambad start 198 service squid reload 195 service vftpd start 199 service ypd start 203 squid configure 195 system-config-dns 205 system-config-httpconf 190 system-config-manages 178 system-config-se 213 system-config-securitylevel 211 system-config-smbd 198 system-config-usrs 181 system-config-vsftpd 200 var/log/httpd. 212 file system-auth 161 authentication 111. 50. 174 B badblocks 6. 101. 110. 179-80 bashrc 70 batch 93. 190 async 42. 190 Apache web server 99. 51.conf 100. 189 apache server 109.log 191 var/run/httpd 189 var/run/klogd 187 var/run/squidd. 52 automount daemons 50. 173 bo 85 book 3. 149. 85 blocksize 45-6. 160-1. 180 bin/bash new-user 180 bin/mount 79-80 bin/tcsh 72 bin/true 90 bin/umount 79-80 Block device 57. 122 atq 94-6. 174.pid 193 var/spool/mail/statistic 208 var/spool/squid/cachedir 193 apache 102. 210 bash 70 bash shell 70-1. 5 boot 14-15. 189 apache web server process 101. 105-6 configuration apache configuration file httpd. 191. 197 autofs status 174 automount 6. 97-9. 51 autofs 50-1. 167-8 boot configuration 27-8 . 212 auto 42. 70. 133-4. 96 bi 19. 72. 174 base 45. 78. 189-91 apache web server configuration directory 100. 165. 101 auth 102. 160-1. 41. 85 bin/bash 35. 25-9. 91.

157 client computers 118. 42. 158 user information 74 clicking 83. 99. 156. 157 bzip2 178 C ca 31. 170. 87. 196. 194 Cache-manager command 194 cache server 105 cache size 112. 204 root user of 118. 195. 18 boot system. 82-3. 29. 112. 211 [1] dhcp 142. 164-5 default 25. 112 cache files 60 cache manager 10. 211 web 104. 28. 119-20. 121. 123. 114. 52. 168 boot ks 165 boot partition 14-15. 183 cat 47-8. 90 Changing runlevels 36 chgrunlevel 170 chkconfig 35-8. 104. 87. 181-3. 131. 25. 180-90. 150. 174 batch 96. 203 client side information 122 client system 137 clients 3. 41. 142. 5. 184 normal 29 boot process kernel 169 boot prompt 16. 47-8. 169. 80 CDROM media 52 change 36. 144-5. 168 click 40. 90. 118. 64-5. 26 boot process 3. 151 atq 95. 27-8. 36-40. 142. 91. 155 cdrom 16-19. 84. 125-6. 138-40. 170-5. 170 choice 16. 202-7 [29] administrative 8. 46.216 boot directory 15 boot/grub/grub. 163. 171 chkconfig command 170 chkconfig dhcpd 204 chkconfig service-name 37-8. 54-8. 192 change directory 131 change root user's password 76 Changing priority of process 8. 127-8. 114-15. 43-4. 72. 164-5 bootloader command 17 broadcast 136-7 browse tab user 66 buffer 86. 169. 75. 193 cachedir 60 case 81. 196 subnet masks of 156. 204. 121. 76-81. 144-5. 139-40. 131. 113-14. 81. 152. 25. 132-3. 93-8. 173-4 cd 120.conf 25. 187 button 107-8. 192-3 cache directory 112 default 193 cache directory section 9. 142. 169 cache 105. 207. 172 bootloader 15-16. 188 badblocks 49. 141. 186. 188 . 186. 123-5. 41. single 14 boot time 34-5. 111 Cmnd 79 columns 42-3 comma 157 command 20-4. 34. 87. 192-4. 125. 99. 27. 79. 78. 120-1. 83. 142. 169. 195200. 86-91. 153.

72. 202 lsmod 185 lvdisplay 57 lvremove 57 mdadm 53-4 mke2fs 173 mkfs 44 mkswap 46 modinfo 88 modprobe 89-90. 186 network 17 nfsstat 122. 183 whois 206 183 ypinit 139. 178 command chkconfig 37. 196 fdisk 172 filename time-specification 95 following 46. 143 command chkconfig dhcpd 139 command chkconfig dovecot 153 command chkconfig httpd 99 command chown 182 command crontab 98 command dd 173 command dhclient 142 command dmesg 91 . 67. 185 install 64 ldapsearch 135. 184 uptime 85 useradd 66-7. 180 visudo 182 vmstat 85. 153 free 183 fsck 48-9 groupadd 73 groupdel 73 groupmod 73 insmod 89. 176 command aliases 79-80 command askmethod 16 command atq 96 command badblocks 49. 71 userdel 72 usermod 72. 52. 204 yum 60-1. 181 dmesg 187 exportfs 119. 186 rmmod 89 sbin/visudo 81 sudo 182 swap 46 swapon 47 top 84. 90 pvcreate 54 renice 90-1. 90 purpose 53. 174 command badblocks device-name 49 command badblocks searches 49 command bzip2 65.217 bzip2 178 chgrp 81 chmod 46 chown 81 chown user-name-group-name file-name df 77. 197 ps 8.

186 command lsmod 88 command lvcreate 56 command mdadm 53 command mkfs.218 command domainname 135.gz 64 commands mke2fs uses 45 commands tar xvf 178 comment 71-2. 122.tar. 207 command don W  command execute 182 command field 98 command file swap 46 command ifconfig 140 command insmod 90 command kudzu 19 command ldapadd 135 command line 46. 135-6. 45. 173. 41. 165-6. 207-8. 116-18. 138-40. 101. 212-13 [19] Configuration GUI 11. 145. 159-61. 59-60. 205. 27-8. 179. 140. 162. 96 command ps 90 command pvremove 58 Command Reference 13. 202 command swapoff 48 command system-config-kickstart 17 command tar xvf 178 command tar xvfz realplay.vfat 173 command modprobe 90 command mount 42. 102. 177 command sequence 148 command service dhcpd start 139 command service dovecot start 153 command service httpd start 99 command service network start 142 command service ypbind start 137 command sets 135 command shutdown 169.insmod loads 186 commands gunzip realplay. 143. 126-8. 202. 211 httpd server 190 post installation 151 samba 197 server's 190 configuration directives 103 Configuration directives for Apache web server process 190 configuration file cd 148 configuration file restart 116 configuration files 11-12. 23. 186-7. 163 command renice 186 command root@localhost 44 command rpm 81. 160. 189-90. 133. 200. 181 command prompts 76. 73. 182 command slapd 134. 212 conf directory 100 config directory 102 configuration 8-9. 176. 101. 80 command passwd 76.gz 64 command umount directory-name 43 command uname 185 command useradd 72 command userdel 180 command vgcreate 55 command vgdisplay 55 command vgextend 55 command vgremove 58 command. 205 . 11. 190. 166. 159. 204 remote 131 conf 100. 128. 48. 64. 77. 194-5. 133-5. 169 computers 14-15.tar. 131. 147-8.

192. 19 Configuring NIS 11. 111 Configuring vsftpd 10. 184 crashes 40. 64-5. 147-8. 205-6 tcp wrapper 156 daemon Configuration 10. 150. 190 database files 147-8. 35. 72 deref 134 DEREF options 134 desc 19 description 29. 125-6. 169. 208 dc 133-4 default installer 14. 110.219 configuration information 115. 71-3. 143. 179. 189 klogd 93. 112. 169 ctrlaltdel 30-2. 169 D daemon 78-9. 136 Configuring services 36 Configuring Squid 9. 66 cron facility 93. 130. 100. 123. 155 data files 46. 141. 173 . 32. 131. 128-9. 155-6. 150. 27 Configuring Hardware 5. 163. 207 days 68 db 138 db files 12. 194-5 conntrack 159 console 29-30. 109-10. 153. 152 dev 18. 212 copy 15. 131. 41-2 dev/cdrom 43-4. 131. 207 defaults 41. 19-20. 128 connect 118. 159. 91. 189 configuration parameters 142. 45 deflate/module 89 Deleting user account 7. 23. 161. 145. 79. 204-5 [5] configure command configures 65 configure IPSec tunnel 23 configure printers 24 configure samba server 197 configure security level 211 configure system's hostname 23 Configuring Grub 5. 52 Creating Kickstart 5. 174 database 64. 51-2. 99. 195 connection 102. 205 desktop 82. 104. 33. 194. 97 crontab 97-8. 27. 147. 147 cpu 85 CPU usage 84. 157 cron 97-9. 164 default operating system 27-8. 92 control 27. 101. 131. 177. 145-6. 106-7. 200-1 core directory 109. 131. 17. 211 internet 115. 61-2. 16 Creating User Account 7. 190 configuration configure 14. 122-3. 81. 187 named 143. 189 crontab jobs 97-8 CTRL 30. 162. 200 Daemon Configuration 151 daemon process name 194 daemon xinetd 12. 168 default parameters 45-6 default runlevel 29-30 default values 66-7. 86.

52-4. 43 df 77. 44. 181 dhcp 139. 90. 54-5. 171 disk druid 164-5 display 57.com 117-18. 143 domain example. 166. 45. 40-1. 209-12 [25] base 153. 42-3. 131. 139. 47-8. 190-1 domain 106. 205 dns server information 141 DNS server information 142 DNS service 143 DocumentRoot 103. 173-5 multiple 52 physical 53 device listing 141 device name 42 device-name 48-9. 77. 174 dev/my 57 dev/sda 26. 106. 169 dir 17. 124. 175 filesystem-type 44. 141. 127. 204 difference 42. 160. 143-6. 174 dev/sda4 43 dev/sda5 40. 34-6. 161. 149-52. 140 dhcp server 139-42.tar 65 directory tree 101. 153. 188-91. 1967. 133-4. 99-104. 117 directory-name host-name 117 directory option 132 directory path 17. 187 DNS server 11. 190 directory user 70 directory yum 175 disk 85. 139-40. 210 directory realplay 64-5 directory realplay. 210 DIR 67-8. 206 var/nis 203 var/yp 203 directory entry 117. 134 directory files 117 directory information 134 directory list 132 directory listing 121 directory name 17. 41-2. 175-7. 156 . 177-8 digits 35. 174 dev/sda2 53-4. 127. 167. 153-4. 77 dev/sda0 53 dev/sda1 53. 118. 96-7. 125-6. 181 display server side information 122 display server side NFS information 197 dmesg 91. 179 directory 15. 204 DHCP server 11. 200 etc/alternatives 152 etc/httpd 189 schema 134 target 173 var/lib/alternatives 152 var/named 145. 173 dev/sda6 172 dev/vol 175 device 19. 117-21. 171. 48 devpts 41. 46. 105. 210 current 131. 49. 59-60.220 dev/fd0 51 dev/md0 53-4. 142 DHCP client 11.

195. 188 customize user's shell 70 EOT 95-6 error 49. 150. 211 etc/httpd 100-1. 144-5. 182 editing 27-8. 175. 99. 120-1.conf 189-90 etc/init 116. 201-3 [2] valid 136. 143. 154 etc/alternatives 209 etc/at.conf 140.defs 67. 138. 143. 58. 114. 173. 179 etc/mail 11. 188 etc/at. 190-1. 87-8 drm 88-9 DSO (Dynamic Shared Object) 102 dual boot system 14 dumb. 123. 117-18.mc 147. 207 etc/mail/sendmail. 153-4 dovecot configuration 210 down list 144-5 drivers 19. web master 107. 208 error Answer 170 error messages 91. 186 . 37. 208 etc/mail/local-host-name 147. 196 etc/exports file 118-20. 169. 156.db 145. 101. 185-7. 80.deny command lists 93.deny 93-4.allow 12. 135. 104.cf 147. 147-8. 20. 149. 147-8. 134. 166. 206 DVD 14-15 DVD drive 14 DVD media 14-15 Dynamic Host Configuration Protocol 139 Dynamic Shared Object (DSO) 102 E edit 39. 29. 186 etc/modprobe. 189 etc/httpd/conf 101-2.conf 90. 195-6 etc/fstab 42. 126.daily 98-9 etc/demo 190 etc/dhcpd. 196. 174. 199 entry initdefault 29 entry mta-sendmail 152 environment 96. 205 etc/inittab 29 etc/login. 211 etc/hosts.misc 50-1 etc/bashrc 71 etc/cron. 188 etc/auto.221 domain name mapping 147.deny 12. 71-3.allow 94. 191 domain names 146-7. 83. 144. 196. 59. 206-8 domain NISDOMAIN 136 domain ServerName 106 domainname domain-name-of-system 135 don W   dovecot 12. 207 Domain Name Service 138 Domain Name System 111. 211 etc/hosts. 183. 108. 179 email address. 207 etc/modprobe 90. 204 etc/exports 117. 151. 187-8 etc/at. 207 etc/mail/sendmail. 156. 171-2 etc/ftab 171-2 etc/gshadow 73 etc/hosts 137. 109 ENAB 69-70 entry 15. 50-1. 189-90 etc/httpd/conf/httpd. 138.

142 exam 3 exam topics 3 example. 200-2 etc/openldap/openldap. 208 etc/postfix/master. 87-8. 117-19. 203 etc/openldap/ldap. 29. 50. 48 filesystem types 42 ext3 filesystem type 52 ext3 filesystems 40. 196 ext2 44-5. 160. 78. 169. 203 etc/postfix/main.conf 92.conf 137. yum commands 176 exit codes 49 expire 60. 34-6.conf 111. 199 etc/X11 32-3. 212 etc/passwd 71. 180-1. 51 ext3 41. 210-11 etc/yp.conf 160. 63. 211 etc/sysconfig/iptables-config 159.222 etc/mstab 172 etc/mtab 6. 196 export HOSTNAME DESKTOP 97 exported directory 122. 209 etc/profile 71 etc/rc 31-2. 161. 184 fc7 26. 171-2 etc/named.conf 59-60. 179 etc/skel directory 70. 67.conf 187 etc/syslog 187 etc/syslog.conf 200-1 etc/pam 13. 72. 194 etc/sysconfig/syslog 187 etc/sysconfig/syslog.conf 134-5.conf 136 etc/yum. 72 Explanation 164-213 export 119. 156 exec 42 execution. 48. 208-9 etc/postfix/permission-files 209 etc/postfix/permit-files 209 etc/postfix/postfix-files 151. 191-4 etc/sudoers 80-1 etc/sysconfig/hwconf 19-20. 52. 173 ext3 rw 42-3 F facility 187-8 failure 54. 166 etc/sysconfig/ipchains 211 etc/sysconfig/iptables 159.cf 151. 176 Ethernet device panel 141 Ethernet interface 17. 212 etc/pam. 42. 171.conf 145. 176 father 27. 91. 179 etc/squid/squid. 205 etc/nsswitch. 212 etc/sysconfig/selinux 162.com 105. 197 exportfs 119. 44. 140. 213 etc/sysconfig/squid 115.cf 151. 187 etc/vsftpd/ftpusers 130 etc/vsftpd/user 129-30. 44-5. 127 fdisk 172-3 Fedora Core Linux 14 . 174 etc/samba directory 126 etc/service/alternatives 209 etc/services/alternatives 209 etc/skel 67. 169. 166 etc/xinetd 155. 122. 132. 70.

allow 97 etc/cron. 208 files 29-30. 203 file owner 81. 183 file swap 47-8 file system 42. 34-6.conf 101.conf 138 etc/openldap/ldap.conf 15 bz2 178 cached 105 change 163 component support component 102 configu-ration 92 crontab 97. 185 filename access. 79-80. 182-3 file modules. 138. 17890. 182 . 88. 211 etc/httpd/conf/httpd. 207 etc/mke2fs 45 etc/mtab 42 etc/named. 206 etc/nsswitch 137 etc/nsswitch. 43. 190 etc/inittab 5.conf 212 etc/passwd 72 etc/postfix/access 151. 188-9 dhcp server configuration 204 domain name mapping 147 dovecot configuration 210 download 128 dump 145.allow 156. 198 etc/shadow 71 etc/squid/squid. 48.networking 88 file names 67. 172 etc/group 71.db 207 apache web server configuration 190 authpriv 92 bash 179 bashrc 70-1. 92-9. 149-52. 182-3 file permissions 46. 198-201. 132. 176 etc/samba/smb. 171-6.conf 145.conf configuration 126 etc/samba/smbusers 126-7.defs 67 etc/mail/access 147.conf 153 etc/export 119 etc/fstab 6. 95. 203-13 [20] access. 202 etc/pam.allow 93 etc/auto.master 50 etc/auto. 172 file group 81. 150. 93. 185. multiple 49 filename 47-8.conf 134. 155-64. 87. 115-18. 29-30. 206 entry 117 etc/at.db 148. 98.misc 51 etc/bashrc 179 etc/cron. 145-7. 139 fourth 42. 137-40. 46-8.conf 193 etc/sudoers 8. 78-81. 169 etc/login. 179 boot/grub/grub.deny 97 etc/crontab 98. 41. 189 etc/dovecot. 49 virtual 41 file system errors 49 file systems. 101-4.223 field 98. 81 etc/hosts. 129-34. 209 etc/postfix/postfix-scripts 151 etc/profile 71 etc/rpmrc configuration 64.

194 squid server configuration 193 standard logging 132 sub-component configuration 101 swap 46-8 tar 178 tar.224 etc/sysconfig/iptables-config 159 etc/syslog.pid 154 file-name.cron 97 ftp server configuration 199 global configuration 64. 200 var/yp/securenets 138. 208 modules.conf 136 etc/yum. 203 ypbind configuration 136 yum configuration 65 zip 178 zone 145.conf 90 sample vsftpd.html 103.gz 178 temporary 60 using 95. 128 single 153 special 92 squid configuration 111.master 50 sample configuration 60 sample etab 122 sample ldap. 145-6.conf 133 sample modprobe.conf 92 etc/yp.bz2 178 tar.conf 176 executable 42. 149 index. 192 squid daemon configuration 115.conf 128 script 151 sharing 122. 191 files nisplus nis shadow 138 files passwd 138 .pid 101 important 11-12. 197 file master. 191 initrd 15 inittab 29 ldif 135 library 101 list 130.cf 151. 204 var/log/secure 93 var/log/xferlog 130. 126 samba user 198 sample 35. 156 execute user-namex201fs 182 exported 122. 132.dep 89 multiple 131 named daemon configuration 145 pid 109 postfix daemon configuration 208 proc/kmsg 93 rmtab 122. 176 gpg key 61 htaccess 104 htpasswd 104 httpd. 206 files he/she 103. 96 sample auto. 199 load config 102 local 138 main. 197 samba configuration 10.

197 Filesystem Administration 6 Filesystem Information 6. 16-17. 176 graphical tools 33 graphical utility 5. 190. 17-18. 132.225 files S10network 35 files xtab 122. 89-91. 83. 199-200 FTP server 128 ftp service 199 G GB 56 gid 41. 71-3. 14. 59.bz2 64-5 value 134 Fri 94-6 fs 45-6 fsck 48-9. 199-200 FTP 3. 181-2 basic 29 df 77 mounted 77. 111 ftp command 200 ftp command prompt 10. 29. 80. 16-17. 34. 25. 91. 40 filesystem mount command 43 filesystem option 77 filesystem type 42. 73 group accounts 66. 196 Global Environment Configuration 9. 180. 184-5 [17] tar. 53-7. 180 group-name 72. 15. 138-9. 19. 52. 78. 25. 101 gpgcheck 60-1 gpgkeys 61. 157. 211. 58-9. 51 following commands cd 148. 41. 169 . 159 firewall command sets 17 firewall rules 159 floppy 45-6. 200 ftp server 129-30. 171-2. 171 pseudo 167 single 52 vfat 173 filesystems tab 83 finger 156 firewall 3. 65. 130. 213 group 8. 53. 117. 43. 69. 73 group administration group apache 102-3 group demo 182 group ids 78 group information 73-4. 79-82. 71. 82 Group Administration 7. 48. 77. 174 fstype 51 ftp 18. 175 grub 5. 20. 35. 40-4. 76-8. 165-7. 33. 103 group sys root 81 groupadd 68. 138. 50-1. 200. 172 filesystem-type device-path-name directory-name 43 filesystems 6. 48-50. 96. 159. 72-3. 130. 122 proc 41. 129-30. 196. 25-6. 73 grp 55-7. 204-5. 27-8 gunzip 178 H halt 30. 46. 168 grub configuration file 5. 146. 109. 67. 60-1. 81. 164-5. 118. 181-3 logical 56 new 7. 168 grub menu 15. 27-8. 47-8. 208 format 10.

167 Installation and Hardware Configuration 5 installation files 15 . 190-1 home directory 46. 180-1. 164. 206 virtual 107-8 host names 117. 181 home/demo 173. 89 hd0 15. 71. 77. 81. 31. 170-1. 201-2 sendmail commands 148 hierarchy 40. 98. 67. 189. 164. 36. 201 information server 103 init 29-30. 115. 77. 79. 169. 201. 87. 34. 191 HTTPD Server Configuration 190 httpd service 99. 29. 171. 172. 126-7. 126. 146. 131. 67. 208 htaccess 103-4 HTTPD Configuration Answer 190 httpd server 103. 44. 52. 89 install 14. 14-17. 31-4 initialize 54 Initializing System 6. 160-1. 23. 77. 34 initrd 15. 137-8. 184 INIT process 30 initdefault 29. 26-7 inode 45-6 Inserting module 8. 59. 112 home 41. 52-3. 89-90. 170 I id 19. 143 hostname 10. 196. 34. 65-6. 65. 122. 32. 69-70. 151. 97 grp System 55 IfModule mod 104-5 imap 153-4 include 50. 172 hard-disk-device name 53 hard-disk-device-name 53-4 hard-disk-partition 55 vgcreate volume-group-name 55 vgextend volume-group-name 55 hard disk partitions 42. 27. 47 hardware 19-20. 168. 134. 117. 86. 212 system-auth password 160 inconsistencies 118 index closed db 64 opening db 63 info 92. 160. 35. 69. 168. 212 install server 15 installation 5. 195-6. 184 init process 27. 50. 50. 174. 146. 168 he/she 144.226 hard disk 14-16. 118-19. 42. 203. 165. 61-2. 29. 176. 104. 166 Hardware Configuration 5 hardware drivers 87. 59. 53-4. 163-4. 64. 161. 206. 192. 196 home/vishnu 118-22 home/vishnu directory 119-20 host 19. 60. 16. 72. 72. 154 infomod modulename 185 information he/she 83. 192. 179-81 his/her 180 home directory name 72 home-directory-name 72 home directory of user 179 home directory path 71 home/jack 181 home/movies 43-4 home/swap 47 home/user 70-1. 26-7. 176-8.

134. 160. 145-6. 29. 32. 186. 18. 188. 212 iso9660 51 J jack 81.227 installation process 14-16. 169-71. 87. 201 LEN 68 letter 36 level 29. 169 keyboard layout 14. 212 iptables modules 159. 53. 26-7. 34-8. 16. 187 kernel Modules 8. procfs-based 122 ip. 185-7. 211 IPC 127 IPC Service 127 ipt 88 iptables 158-9. 128. 174. 202 ldap directory information 201 ldap server 134-5. 52 K KB 56 kde 70 kernel 8. 193. 80.com 164-5 Kickstart Kill Process 83 klogd 92-3 ko 89 ks 18 kudzu 19-20. 17. 41 languages system 14 largefile 46 lastrunlevel 170 ldap 11. 164. 198-9 jill 188 jobs 87. 15. 151. 93. 149-50. 167 kickstart-file/install/linux. 30. 90 kernel/lib/zlib 89 kernel messages 92-3. 91. 199 journaling feature 40. 161. 188 john 179. 204-6 list of 156. 166. 169 gpg 60 Kickstart 18 kickstart configurator 17 kickstart file 5. 93-7. 176 level directories 35 level rpm configuration file 177 lib/modules 87-90 lib/modules/uname 89 Lightweight Directory Access Protocol 133 . 212 kernel/crypto/module 89 Kernel Information 8. 181. 196. 168. 20-1 keys 30. ns 159 ip address 131. 201-2 LDAP Data Interchange Format 134. 50-1. 201 ldap directory 135.conf 133 ldapsearch 202 ldif 134. 164. 133-5. 139-40. 167 interface. 18. 185 Kernel Services and Configuration 8 kernel subdirectory 88 keyboard 16. 142-3. 165 L LABEL 26. 87-91. 94. 201 ldap service service ldap start 135 ldap.

87. 133. 126. 84. 188. 78-9. 99. 92-3. 67-8. 131. 95-6. 207-10 incoming 151-2 mail processes 155. 132. 56 Logical volume group support 54 login 33. 129. 190-2. 164. following 104-5. 50-1. 154. 47. 148. 128. 94-5. 138. 207-10 Makefile 138. 191. 171-2 load average 84-5. 103. 70. 136. 67. 94. 128-30. 60. 150-1. 196. 114. 208 logical volume 7. 207-8 locks 122 log 78. 41. 48 list of users 129. 87. 198-202. 60. 147. 199 links. 97-8. 190. 150. 96. 83. 152 lsmod modulename 185 lvcreate 56 lvremove 57-8 M mac 187-8 mail 12. 132. default partition 164-5 maps 91. 94.228 LILO 165 line. 203 manager. 70. 92. 209 mail transfer agent 146. 176. 153. 25. 152-5. 97-8. 208 mail server sendmal 207 mail services 11. 205. 160. 149. 151. symbolic 35. 207 default 152 mail server request 150. 132. 196 automounter 50-1 . 151. 88. 210 mail root 96 mail server 146-7. 111. 56-9. 183-4 LoadModule auth 102 local system 131. 120. 52. 152. 175 Logical Volume Group 6-7. 149. 152-4. 85. 135. 127-8. 151. 130 lrwxrwxrwx 100 ls 46-7. 114-15. 164. 168 linux file system structure 165 linux filesystem 48 list 38. 87. 161. 78-9. 143. 72. 109. 25. 147. 60-1. 87. 66. 131-2. 200 local system mget 131 local system mkdir 131 localdomain 135-6 localhost 99. 104. 66. 152. 147. 112. 149-50. 126. 128. 101. 129. 191 entry domain Localdomain server 137 location 16. 179. 78. 146-7. 199 [5] list of commands 44. 208 main configuration file 100-1. 54. 100-3 Linux 15. 150 Mail Transport Agent Switcher 152 mail transport agent work 153 Mail User Agent 146 mailbox 12. 150. 103. 106. 152. 170-1. 153. 152. 112 log files 12. 153-4. 100. 191 logout 70 logs directory 100 lp 78-9. 100. 185. 199 list root 129 list service-name 38 list status 38 listing 19. 199 anonymous user 129 initial 179 LogLevel 104. 60. 130. 86-7. 140. 179. 207 default 164 log information 8. 70. 133. 187 Log Configuration Answer 184 Log File and Cache directory section 9. 209 logging 92.

197 mount-options-separated-by-comma 50-1 mount point 40. 104.list selinux policy 163 system-auth 161 modules directory 101 Modules Loaded 8. 210 Maximum number of running mail processes 154 MB 46. 100. 190 command modprobe 89 driver 89. 46 mkfs 44-5. 156. 50. 50 Multiuser 31. 56. 33 misc 50-1 mke2fs 44.system 178 monitor type 21 Monitoring System performance 8. 73 Modifying user account 7. 25. 72 modinfo 88. 212 authorization 100. 63. 168. 165 graphics 33 multiuser 31. 166. 161.229 master 50 MASQUERADE 88 Master Boot Record (MBR) 14. 150. 164 MD5 69-70 mdadm 53-4. 80. 80. 173-4 mnt/cdrom 80 mnt/win 120. 119-20. 49. 210 MAX 68-9 maximum number of mail processes 155. 42-3. 174-5 mdadm device-name 175 mdadm raid-device-name 53-4. 166. 164 MBR (Master Boot Record) 14. 50. 183-4 messages 91. 187. 172 mnt/win directory 120 modes 20. 25. 52. 112. 208 outgoing 149 Min/max values 68 minutes 30-1. 185 loaded 88. 191. 182 memory 85. 169 Multiuser mode booting 169 MYGROUP 127-8 . 111. 172. 185-6. 173 mbr 16. 88 modules module 89-90 modules.symbols 87 modules. 50. 185-6 modinfo modulename 185 modprobe 186 modprobe modulename 185 modsecurity directory 101 module modules/mod 102 module name 90 module-name 90 modules 87-90. 185 remove. 21. 33. 175 mem 112. 53. 29. 169 safe probe 20. 42. 159. 93. 165 Modifying group information 7. 82 mount 27. 182 mount command 42-3. 41-3.inputmap 88 monitor 17. 166 package package-name. 119. 172 mounted directory 44 mounting 6.networking modules. 164 matt 180 max 154-5. 53. 192-3 members 69.usbmap kernel modules. 166. 102. 80. 172-3. 42-3.

174. 79-80 NFS 3. 196. 196 NFS server configuration utility 120. 202-3 NIS server information 138. 140. 138-40. 61. 179 . 119-20. 136-9. 103. 126. 53. 155. 204 O objects 112-13. 41. 128-9. 118 order 35-6. 117. 61-2. 193. 134. 144-5. 68. 193 network 16-18. 120. 169 organizations 116. 102. 118. 184. 104. 131. 94. 192-3 operation 50. 88. 101. 212 neat 22. 147. 184. 88. 69. 104-5. 31. 119. 187. 204. 114. 85. 197 NFS Configuration 196 NFS daemon 119. 197 nis 135. 22-3. 93. 166. 96. 91. 122. 114. 120 netbios 159 netmask 139. 207 network access 135 Network Configuration 140. 198-9 [3] Naming convention of files 35 nat 88 NAT filtering 159. 135. 119. 122. 117. 197 NFS Server Administration Answer 196 NFS Server Configuration 10. 190 N name 35. 121 NFS directory 10. 35-6. 142. 119. 87-8. 166 network information 184 Network Information Service 135 network options 9. 166. 192-3 transit 112. 135-7. 120. 204 net 50. 201-2. 166 network devices 14. 197 NFS server 15. 195-6 nfsstat 122. 202 NIS group 117. 155 network usage information 184 networking 31. 53. 143 OS 127 output 46. 48. 196. 116. 139.230 Mysql 100. 117. 201 overridden 46. 203 NIS server name 137 NIS version 138 nisdomainname 135-6. 63. 132 network port 163 network security 12. 197 NFS server root user 196 NFS service 116. 187-9. 122. 173. 48 number 29. 137-8. 203 files nisplus 138 NIS database 11. 111. 202 nisdomainname domain-name-of-system ypdomainname domain-name-of-system 135 NISGRP 195 noauto option 172 nocrossmnt 122 nodaemon 32-3 nodev 51 nosuid 51 notauto option 172 nouser 42 ntfs 45. 170. 195 NIS server 11. 71. 97. 197 option url 17 options format 10. 94. 133. 203 NIS domain name 11. 192-3 hot 112. 17-18.

27. 40. 114-15. 102. 84. 107. 90. 148. 157 partition 14. 212 configuring 160 PAM configuration file 212 PAM modules 161-2. 168-9. 166 Perl 100. 178 package name 61 package-name 62. 132. 183-7. 118. 71. 64-6. 123-5. 5. 190 physical volume 7. 191-2. 168. 83-4. 122 Prints 63 priority 36. 66. 144-5. 160-1. 145. 121. 127. 78. 212 panel 53. 154. 102. 170. 209 list postfix service 150 postfix mail server 151 postfix server 150-3.yum install 178 package package-name 177 package processing 63 packages 3. 111-12. 74. 32-3 prefdm 32-3 prevrunlevel 170 printers 23-4. 157 PASS 68 passwd 138. 180 path 18. 211 port panel 158 postfix 12. 208-9 postfix server log information 209 power 30-2 power failure 30. 52-4. 76. 33 powerokwait 30. 62-4 istration xf0b7 3 pam 129. 14. 129 pop3 153-4 port 16. 66. 134. 181-2. 32-3. 167. 177 package-name queries 178 package-name. 71. 193 pipe 94 Pluggable Authentication Module 93. 174 proc 41-2. 121. 129. 93. 161. 146. 171 filesystem-type source 172 pass 3. 47-8. 212 password of user 76. 171 . 154-8. 32-3 powerfail action 30. 102. 190 permission mask 69 PHP 100. 59-62. 165. 176-8 gpgkeys of 176 installed 62. 58. 126. 182-3 P Package management and Kickstart 3 Package Manager 7. 52 Power Restored 32-3 powerfail 30. 47-8. 121. 155. 118. 98. 195. 80. 161. 97. 177 software 14. 68. 145. 203 port number 102. 43. 150-3. 85. 124. 154 performance 110. 182-3 probing 20 problem 103. 180-1 passwd user-name 76 passwd command id 181 password 15. 142. 17. 189. 175 pid 29. 28-9. 65. 172 disk 40.231 owner 81. 96. 86. 186 privilege 78-81. 107-9. 177 yum install 61. 139. 171-3 dev/sda6 40. 59. 52. 54-5.

144 properties button 74. 183-6. 164. 62. 175. 208 remote system mput 131 remote system rename 131 remove 7. 168 Red Hat Certified Engineer 3. 52 raid level information 53 raid options panel 53 ram 192-3 RAM memory 84. 191 programs 35. 192-3 ratio 45-6 rc 31-2. 77. 207-8 RELAY 150. 204 process identification number 29. 112. 158 proxy 104-5 ps 20. 210 active 83 concurrent 201 postfix daemon 151. 32-4. 89-90. 165. 184 process PID 41 process priority 91. 191 prompt 30. 184 process pid 90. 57 reconfigure 116. 27. 25. 23. 53-4. 136. 186 remove user groups 69 . 195 Red Hat 14-15. 190 Q QMAIL 67-8 queries 62. 173 proc/uptime 184 Process and Kernel Information 8. 16. 84. 144. 29-30. 142. 64. 57-8. 90-1. 120. 146 R raid 174-5 RAID 52 raid array 53 raid device name 53 raid-device-name 53-4. 95 pts 85 Python 100. 182 properties 59. 121.232 proc/modules 185 proc/swaps 47-8. 164 Red Hat Linux 14. 80. 102. 175 raid-device-name device-name 175 raid devices 53-4. 5 Red Hat Enterprise Linux 14. 36 rc5 32. 53-4. 28.sysinit 31-2 read/write 55. 146 protocols 101. 5 Red Hat Certified Engineer Exam 3. 209 proxy 114. 150. 93. 169. 161. 184 zombie 84. 168. 108-9. 171 rc1 34. 194. 122. 174-5 RAID devices 52-3 raid devices information 53 RAID disks 6. 172 relay 147. 156. 69. 184 processes tab 83 profile 70 program dnsserver 111. 153-4. 83-6. 167-9. 35-6. 90 process id 91. 91. 194 running 90 total number of 84. 62. 69. 169 rc. 58-9. 186 processes 8. 184. 94-5. 36. 154-5. 41. 143. 171.

43-4. 85. 212 iptable 158-9 runlevel 6. 122 root 15. 122. 171 runlevel service-name 170 runlevel values 29 running mail processes 154. 5 ro 51. 60. 36-9. 93-4. 182 root privilege 182 root root 47. 66. 93-8. 116 rootnoverify 26-7. 80-1. 198 . 62 rpm package information 177 storing 64.cfg 16. 159.233 Removing module 8. 78. 118. 99. 52. 210 rw 42. 122. 89 respawn 29. 58. 118. 133 root run-parts 98-9 root user 42. 5 RH systems 69 RHCE 3. 29-30. 127 Samba Server Configuration 10. 196 RH 3. 168 rootnoverify option 168 rpm 7. 28. 198 list of 127. 46. 32-9. 164. 62-3. 152 root@localhost nfs 119-20. 70. 99. 32-3 restart 40. 177 rules 112. 118. 120. 78 root@localhost 17. 167. 77. 85-8. 100. 182 root user's password 76. 197 samba server status information 198 samba users 123-6. 169 document 109 root/install-log. 181-2. 150. 59. 180-3. 54. 77-9. 122 S Samba 3. 70-3. 195 service nfs 119 service sqd 195 service squidd 195 restarting 119. 188 maps 196 maps client 196 privilege of 78. 118. 176-7 rpm configuration file 176 user level 64 rpm format 59. 177-8 rpm command 62-3 valid 177 rpm command uses 64. 82. 169-71 previous 36. 135-6. 170 standard 32 runlevel command 170 runlevel directories 35-7 runlevel field 29-30 runlevel scripts 169. 159-60. 140 [8] root@localhost alternatives 153 root@localhost cron 98 root@localhost dev 55-7 root@localhost home 47-8 root@localhost mail 148. 67. 122 root@localhost postfix 150-1 root@localhost pub 20-4 root@localhost squid 112.info 164 root/install. 17. 194 root/anaconda-ks. 165. 167 root directory 105. 26-7. 114. 97.log 164 root password 14. 94-9. 142.

169. 190 . 106. 190. 99.com 106 ServerRoot 101. 157. 148-50. 211 Security Level Configuration 12. 137. 198 web 9. 136-7. 41. 126. 105. 157. 101. 118. 207-8 [6] demo sama 127-8 high performance proxy caching 111 proxy 104-5 samba 10.example. 213 SELinux user identities 163 Selinuxtype 163 sender 150. 139. 118. 12. 190. 201-2. 78-9. 98 sbin directory 80 sbin/fdisk 79-80 sbin/nologin 78-9 sbin/service 79 sbin/sfdisk 79-80 sbin/shutdown 31-3. 127. 168. 146. 99. 45. 103. 157. 101-4.234 sample 30. 50-1. 211 security Level Configurations 211 selinux 17. 203 security Configuration 211 security level 117. 134. 41-2. 96-7 scheduled jobs 94-6. 92. 93. 15. 103 server system 135 single web 106 ServerAdmin root@localhost 103 servername 17 ServerName 106 ServerName dummy-host. 207 server 3. 162-3. 152-3. 171 search 60. 93-4. 32. 139-40. 191 Server Configuration 9. 67. 201 search tab user 66 seconds 27-8. 163-4 SELinux 3. 146-50. 13. 213 SELinux configuration file 162. 201 schema files 133-4. 159. 206 search request 134. 134-5. 152-3. 164. 122. 138. 162. 98. 114-16. 201 section 9. 15. 201 default ldap 202 scripts 29. 205 Server Configuration Answer 205 server HOSTNAME 136-7 server information 101 server mirrorlist 61 server name 107. 34-6. 159 sample format 94. 207-9 mail server 147 sendmail log information 149 sendmail restart 148 sendmail server 12. 134-5. 128.cgi 194 server root names 101 server section 9. 65-6. 144-5. 195. 150. 213 SELinux administration 13. 213 SELinux configurations 213 SELinux manager Answer 213 SELinux policies 162. 78-9. 112-13 global environment configuration 101 security 17. 204-5. 80. 134 server-name/cgi-bin/cachemgr. 33. 115 sample questions 3 sbin 41. 101. 169 schedule 31. 147-8. 70. 159. 188 schema 133. 208 sendmail 11. 207-9 default 153 sendmail server type 146 sendmail uses 147.

52. 128 shared directories 120. 120 default 152. 154. 170 service service-name start 38 service service-name stop 39 service smb start 127. 27. 209 dhcpd 139 dovecot 153-4. 65. 198 service smbd start 198 service vsftpd start 128. 182. 33 size. 61. 139. 128 shell 67. 169 shutdown 30-3. 132. 169-71. 189. 189 service httpd stop 39 service management apps 80 service-name 170 service nfd start 195 service nfs start 116. 155-6. 189 service httpd start 38. 98-9. 201 Smaba configuration Answer 197 Smaba Server configuration 197 socket 111. 70-2. 199 service yp start 202 service ypserv start 203 terminal 137 service ypserver start 202 serviceconf 39. 176 . 79-80. 153 SIGKILL 185 signal 185 Single user mode 31. 171 services 10. 143. 134-5. 156-7. 145. 198 sharing 3 trusted 157 xinetd 156. 99. subdirectory 181 size of files 76. 175 software configuration 33 software repositories 59. 182 Shutdown Canceled 32-3 Shutting 119. 129-30. 160-1. 32. 195 service nfsd 195 service nfsd start 195 service passwd 161 service postfix start 153 service S10network 35 service samba start 198 service sendmail start 146 service service-name 37-9. 170-1. 210-12 alternatives 152 autofs 50. 79-82. 182 shell script 34. 127. 30. 210 managing 82 net-work 35 network 33. 129. 101. 211 ypbind 137 services Answer 210 session 160-1. 21. 205. 181 SIZELIMIT 133-4. 130. 36 new 37 samba 127. 192 software 64.235 service daemons 157 service ftp start 199 service ftpd start 199 service httpd 38-9. 201-2 [20] set initdefault 30-1 share 121. 126. 17. 170-1. 80. 25. 151. 152-3. 115. 125. 34-41. 99. 103-4. 212 set 14. 125-7. 198 samba 123. 199. 78.

85-6. 115-16. 49-50. 122. 153 Starting httpd 39. 143. 139. 61-2. 56. 118. 29-30. 82. 34. 82-6. 64-6. 127-8. 130. 153 network service 36 service sendmail 153 storage 60. 165. 194-5 server program 111. 206 sys 41. 166-70. 97 statistics kernel NFS client 122 kernel NFS server 122 virtual memory 85. 137. 135-8. 198-9. 77-80. 134-5. 181 total 56 squash 118. 196-8 [21] . 172-4. 143. 39-40. 183 status 37-8. 114-16. 127-8. 137 Starting postfix. 181 subtree 122 success 161 suid 42 Sun Microsystems 135 swap 41-2. 99 Starting init 5. 29 Starting Named 11. 119 Starting NFS quotas 116. 46-7. 181 amount of 77. service postfix start 151 Starting postfix server 12. 119 Starting NFS services 10. 166 swpd 85 sync 78. 79-80 subdirectories 40. 122. 195 squid server 9. 111. 28. 143 Starting NFS daemon 116. 205 [10] Start Process 83 start squid 115 Starting Apache 9. 150 Starting Samba 10. 181 subfolders 76. 130 synchronize system's clock 25 syntax 145. 189. 194-5 squid log files 112 squid reconfigure 195 squid restart 116. 137 startup 20. 196 squid 3. 119 Starting NIS server 11. 119 Starting NFS mountd 116. 167 sysfs 41-2 sysinit 29-32 syslogd 9. 45-7. 76. 99. 132. 174. 187 system 25-6. 191 squid daemon 10. 165 swap area 46-8 swap filesystem 173 swap partition 14. 170-1. 111-12. 128 Starting ypbind service 11.236 source code 64-5 source filesystem 173 space 53. 1836. 47. 35-40. 176 stop 35-7. 191-2. 80-1. 99 Starting Dovecot 12. 148. 176-7. 127 Starting Services 34 Starting squid 116 Starting vsftd 10. 33-4. 116. 173 swap space 6. 92. 116. 91. 153. 191-4 squid start 116 squid user 114 squiduser 194 start 17.

125 samba user 124 tab user 132 server control 132 tar xvf 178 tcpd 156. 23. 155 system clock 34 system-config-bind 143. 140. 166. 167 system-config-display 21 system-config-ftp 200 system-config-ftpd 200 system-config-httpd 106. 107.237 system administration 7. 189 system information. 184 system reboots 32. 204 system-config-nfs 120. 167 system-config-users 73. 183. 184 system logging 92. 181 system-config-usr 181 System-config-vsftp 200 system-config-vsftpd 131 system crontab file 98.uname 185 system initialization 31 System Log 86 system log information 184 System Log Manager 184 system log viewer 86. 144 basic 123. 141. 187 System Monitor 82. 196 system administrator execute 180 system-auth 160-1 system boots 30. 187-8. 169 system users 132 system users behavior 132 SystemManager 184 T tab 21. 197 system-config-sambad 197 system-config-securelevel 211 system-config-security 211 system-config-securitylevel 157 system-config-selinux 162. 211 . 205 system-config-boot 28 system-config-date 24. 197 System-config-nfsd 197 system-config-packages 65. 175 system-config-manage 178 system-config-name 205 system-config-neat 166 system-config-net 166 system-config-network 22. 184 system administrator 180-1. 82. 42. 50. 109. 190 system-config-https 190 system-config-keyboard 20 system-config-kickstart 17 system-config-level 211 System-config-logman 175 System-config-lv 175 system-config-lvm 58. 178 system-config-printer 23 system-config-samba 122. 155. 171 system-config-smb 197 system-config-soundcard 21 system-config-time 24. 213 system-config-SElinux 213 system-config-SELinux 213 system-config-services 39.

70. 93-5. 62. 71. 168 timezone 16-17 tmpfs 41-3 topics 3. 127 Unix username 198 unmount 43-4. 169. 161. 69-71. 101. 178 xvf 178 unconfigures 20 uninitialized entries 59 Unix 127 Unix user name 198 UNIX user name 124. 185 uncomment 81.238 Te user 78 telinit 36. 45. 154. 132. 127. 99. 16-17. 128 uncompress 64. 91. 139-42. 163 processor 185 running Linux system 42 U uid 68. 132. 132. 196 ban 132 bin/bash 71 bin/csh 71 common 40 configuration file 134 effective 114 etc/passwd filesystem 71 ldap directories 134. 199 menu option 83 modifying 82 multi 66 new 66-7. 150-1. 196 umount 44 uname 87. 101-2. 59. 161. 148. 176-7 upgrade 14. 183 time-specification 94-5 TIMELIMIT 133-4. 149 type 17. 170 telnet 156 text editors 16. 115. 201 local 128-9. 201 timeout 26. 197 user account apache 103 . 27-30. 27-8. 24-5. 177 upgrade option 17. 83-7. 78-80. 80 unmounting 6. 104-5. 198-201. 61. 132. 157-8. 93-4. 65-6. 121. 97 time 19. 61-2 Use NIS 138 user 14-18. 115. 160-1. 52. 167 upload 128-9. 115. 135. 43-4 update option 167 updates 20. 167. 206-9 [31] administrative 78. 180 normal 80 password 29 trusted 147 useradd 70 userdel 180 valid 126 user accesses 161. 66-7. 112 usage 49. 118. 158 UPS 31-2 uptime command uses 184 URI 133-4 url 17. 174-7. 75. 129-30. 179-91. 44. 180 anonymous 128. 124-30. 102-4. 84-5. 47-8.

changing 7. 188 user-name V SDVVZRUG  user password.239 user account john 179 user accounts 66-7. 97.Will root. 90. 198 user login name 180 user lookups 138 user Mac 187 User Manager 180 user Manager Utility 180 User Manger 180 user Matt 179 user-name 72. 78-9. 74. 187 user issues command insmod 185 user jack 81 user Jack 181. 72. 182 his/her 103 useradd options 66 user names 15. 106 user set 190 user squid 114 USER TTY 85 user user 180 user user-name 181 user Vishnu 182 user yum 59 user1 126 useradd 67-9. 180 user issues 183. 71-2. administrative 182 user V  user V HQWU\ YDOLG  user V SDVVZRUG  . 180 username 188 users don W  users group 80 users Jack 188 users John 199 users localhost 80 users SELinux security cate-gory 163 users tab 132 user. 179-80 user-id 72 user information 72. 161. 180 useradd command line 69 useradd user-name 67 userdel 69. 76. 124. 179 administrative 114 installation root 66 new 72 User Admin 180 User Administrator 180 User and Group Administration 7 user apache 102-3 user applications 41 user button 75 new 124 User Configuration 180 user doesn W  user don W  user id 78. 199 directive 199 usermod 72. 130. 76. 78. 93-4. 180 userdel user-name 72 USERGROUPS 69 userid 71 userlist 129. 71-2. 161 user requests 49. 71-2. 149. 151.

152 var/spool/squid 112. 89 Using system-config-cache 194 Using system monitor 177 Using System Monitor 8. 184.log 60. 204 var/lib/nfs directory 122. 200 network configuration 142 samba server configuration 122 service configuration 39. 197 daemon Configuration 131. 91. 178. 152. 125. 28. 69. 139. 193 var/temp 179 var/yp/securenets 203 vendor V VWDWHPHQW  verbose information 63. 151 var/spool/mail directory 70 var/spool/mail/stats 208 var/spool/postfix 12. 96 Using chkconfig 171 Using command chkconfig 6. 199 usr/lib/httpd/modules 189 usr/lib/httpd/modules directory 101-2 usr/local 97-8 usr/sbin directory 79 utility 22-4. 77. 134. 123. 149. 171 system monitor 82 user manager 73 utility Answer 175 utility Network Configuration 140 V values 29. 200 var/log/yum. 182. 159. 132. 177 var/lib/rpm/Name 63-4 var/lib/rpm/Packages 63-4 var/lib/rpm/Pubkeys 63-4 var/log/cron 92-3. 59 . 197 var/lib/rpm 64. 171. 177 Very Secure 10. 98.leases 140. 188 var/spool/cron directory 97. 73 usr 40-1. 175 vgextend 55. 131. 145.log 154 var/log/httpd directory 100 var/log/maillog 92. 106. 50. 209 var/log/vsftpd. 53. 37 Using mdadm command 53 Using modprobe command 8. 189 var/spool/mail 68. 87. 144-5. 206-7 var/run directory 101 var/spool/at 96. 198 vmlinuz 15 vol 55-7. 165-6. 82 Using tar xvf 178 Using User Manager 7. 21 View Process 83 Virtual server files 147 Virtual users file 147 VirtualHost 106 vishnu 126-7. 59. 176 var/named/data/cache 145. 48. 200 vfat 43. 191 [4] var/cache/mod 105 var/lib/dhcp/dhcpd. 198 samba user 127. 45. 131. 175 video card 17. 78. 71. 149.log 130.240 Using batch command 9. 187 var/log/dovecot. 60. 36. 162-3. 172-3 vfat filesystem type 172 vgcreate 55.

25. 59. 144 st 144 xferlog 129 xfs 45. 122. 55-6. 168. 84. 155-6. 202 ypserver HOSTNAME 136 yum 59-60. 203 ypdomainname 135-6. 27. 86. 152.com 106 X xconfig 16-17 -18. 82. 198 won W  workgroup 128 writable option 125-6 www/docs/dummy-host.example. 191 wheel 80 Window System 3 windows 25. 210-11 xorg. 53. 119. 176 yum uses 59-60 Z zombie processes usage detail zone file directory 145 184 . 104. 23. 191 wdelay 122 web 59-61. 34. 103-4.conf 166 Y yp 138. 27. 127. 200 VSFTP daemon Configuration 200 vsftpd 128 VSFTPD Configuration Answer 200 vsftpd service 128 vsftpd userlist 129 vv 63-4. 175 vsftp 128-9. 20. 177 W warn 68. 98. 122. 48 xinetd 3. 132. 172 windows user name 124. 65-6 web browser 100.241 volume group 7. 75. 58-9.

Sign up to vote on this title
UsefulNot useful