There are Mail servers, Web Servers, DNS Servers and Log Server. Log Server is already configured. You should configure the mail server, web server and dns server to send the logs to log server.
Answer : According to question, log server is already configured. We have to configure the mail, web and dns server for log redirection. 1. vi /etc/syslog.conf mail.* @logserveraddress 2. service syslog restart mail is the facility and * means the priority. It sends logs of mail services into log server.
Raw (Model) printer named printer1 is installed and shared on 192.168.0.254. You should install the shared printer on your PC to connect shared printer using IPP Protocols.
Answer : IPP( Internet Printing Protocol), allows administrator to manage printer through browser so CUPS is called Internet Printing Protocol based on HTTP. We can Install the system-confing-printer tool or through Browser. 631 CUPS (Common Unix Printing System) used the IPP protocol. CUPS use the 631 port. 2. Click on Manage Printer. 3. Click on Add Printer. 4. Type Printer name, Location, Description. 5. Select Device for bb. (Select IPP). //192.168.0.254/ipp/ queue name Same printer name of shared printer. 7. Select Model/Driver RAW printer. 8. service cups restart
You are administrator of Certkiller network. First time you are going to take the full backup of all user's home directory. Take the full backup of /home on /tmp/back file.
Answer : 1. dump -0u -f /tmp/back /dev/hda4 dump is the standard backup utility. According to the questions, fullback should take. -0 means fullback, -u means update the /etc/dumpdates which maintains the backup record and -f means filename. If you are directly taking backup into other device, you can specify the device name. i.e dump -0u -f /dev/st0 /dev/hda4. Where hda4 is a separate partition mounted on /home.
You are working as a System Administrator at Certkiller . Your Linux Server crashed and you lost every data. But you had taken the full backup of user's home directory and other
System Files on /dev/st0, how will you restore from that device?
Answer : 1. Go to on that directory where you want to restore. 2. restore -rf /dev/st0 To restore from backup we use the restore command. Here backup will restore from /dev/st0 on current Directory.
Add a job on Cron schedule to display Hello World on every two Seconds in terminal 8.
Answer : 1. cat >schedule */2 * * * * /bin/echo "Hello World" >/dev/tty8 2. crontab schedule crontab -l 4. service crond restart Minute Hour Day of Month Month Day of Week Commands 0-59 0-23 1-31 1-12 0-7 where 0 and 7 means Sunday. Note * means every. To execute the command on every two minutes */2. crontab filename crontab -l crontab -e crontab -r
Deny to all users except root to run cron schedule.
Answer : 1. vi /etc/cron.allow root or vi /etc/cron.deny Write all user name to deny. /etc/cron.allow, /etc/cron.deny file is used to control users to allow or deny. If /etc/cron.allow file is created only that users are allowed to run cron schedule. Another way to deny to users is /etc/cron.deny write all user name on single line.
Add a cron schedule to take full backup of /home on every day at 5:30 pm to /dev/st0 device.
Answer : 1. vi /var/schedule 30 17 * * * /sbin/dump -0u /dev/st0 /dev/hda7 2. crontab /var/schedule 3. service crond restart We can add the cron schedule either by specifying the scripts path on /etc/crontab file or by creating on text file on crontab pattern. Minute Hour Day of Month Month Day of Week Commands 0-59 0-23 1-31 1-12 0-7 where 0 and 7 means Sunday. Note * means every. To execute the command on every two minutes */2.
One NIS Domain named rhce.com is configured in your lab, server is 192.168.0.254. rhce100, rhce200,rhce300 user are created on domain server. Make your system as a member of rhce.com domain. Make sure that when nis user login in your system home directory should get by them. Home directory is separately shared on server eg
/home/stationx/ where x is you station number.
Answer : 1. use the authconfig --nisserver=192.168.0.254 --nisdomain=rhce.com --update or system-config-authentication 2. Click on Enable NIS rhce.com 4. Type Server 192.168.0.254 then click on next and ok 5. You will get a ok message. 6. vi /etc/auto.master and write at the end of file /home/stationx /etc/auto.home --timeout=60 7. vi /etc/auto.home and write /home/stationx/& please specify your station number in the place of x. 8. Service autofs restart 9. Login as the rhce1 or rhce2 or rhce3 on another terminal will be Success. According to question, rhce.com domain is already configured. We have to make a client of rhce.com domain and automatically mount the home directory on every client. To make a member of domain, we use the autheconfig or system-config-authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address. Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service reads the configuration from /etc/auto.master file. On /etc/auto.master file we specified the mount point the configuration file for mount point.
There are three Disk Partitions /dev/hda8, /dev/hda9, /dev/hda10 having size 100MB of each partition. Create a Logical Volume named testvolume1 and testvolume2 having a size
250MB. Mount each Logical Volume on lvmtest1, lvmtest2 directory.
Answer : 1. pvcreate /dev/hda8 /dev/hda9 /dev/hda10 pvdisplay command is used to display the information of physical volume. 2. vgceate test0 /dev/hda8 /dev/hda9 /dev/hda10 vgdisplay command is used to display the information of Volume Group. 3. lvcreate -L 250M -n testvolume1 test0 lvdisplay command is used to display the information of Logical Volume. 4. lvcreate -L 250M -n testvolume2 test0 5. mkfs -t ext3 /dev/test0/testvolume1 6. mkfs -t ext3 /dev/test0/testvolume2 7. mkdir /lvtest1 8. mkdir /lvtest2 9. mount /dev/test0/testvolume1 /lvtest1 10. mount /dev/test0/testvolume2 /lvtest2 11. vi /etc/fstab /dev/test0/testvolume2 /lvtest2 ext3 defaults 0 0 /dev/test0/testvolume1 /lvtest1 ext3 defaults 0 0 To create the LVM( Logical Volume Manager) we required the disks having '8e' Linux Physical Disk1 Logical Volume 1 Physical Disk2 Physical Volum Volume Group Logical Volume 2 Physical Disk3 Logical Volume 3 LVM type. First we should create the physical Volume, then we can create the Volume group from disks belongs to physical Volume. lvcreate command is used to create the logical volume on volume group. We can specify the size of logical volume with -L option and name with -n option.
One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is
100MB now you required more 200MB. Increase the size of Logical Volume, size should be increase on online.
Answer : 1. lvextend -L+200M /dev/test0/testvolume1 Use lvdisplay /dev/test0/testvolume1) 2. ext2online -d /dev/test0/testvolume1 lvextend command is used the increase the size of Logical Volume. Other command lvresize command also here to resize. And to bring increased size on online we use the ext2online command.
We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on
/data. Now you required more space on /data but you already added all disks belong to physical volume. You saw that you have unallocated space around 5 GB on your harddisk.
Increase the size of lvtestvolume by 5GB.
Answer : 1.Create a partition having size 5 GB and change the syste id '8e'. 2.use partprobe command 3.pvcreate /dev/hda9 Suppose your partition number is hda9. 4.vgextend test0 /dev/hda9 vgextend command add the physical disk on volume group. 5.lvextend -L+5120M /dev/test0/lvtestvolume 6.verify using lvdisplay /dev/test0/lvtestvolume.
Install the Redhat Linux RHEL 5 through NFS. Where your Server is server1.example.com having IP 192.168.0.254 and shared /var/ftp/pub. The size of the partitions are listed below:
/ -> 1048
/home -> 1028
/var -> 1028
/usr -> 2048
Swap -> 1.5 of RAM Size -
/data configure the RAID Level 0 of remaining all free space.
After completing the installation through NFS solve the following questions. There are two networks 192.168.0.0/24 and 192.168.1.0/24. As well as there are two domains example.com on 192.168.0.0/24 network and cracker.org on 192.168.1.0/24 network. Your system is based on example.com domain.
Answer : 1.Insert the CD on CD-ROM and start the system. Prompt type linux askmethod 3.It will display the language, keyboard selection. 4.It will ask you for the installation method. 5.Select the NFS Image from the list 6.It will ask the IP Address, Net mask, Gateway and Name Server. Select Use because DHCP Server will be configured in your exam lab. 7.It will ask for the NFS Server Name and Redhat Enterprise Linux Directory. 192.168.0.254 /var/ftp/pub 8.After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options. 9.Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question 10.Create the two RAID partitions having equal size of remaining all free space. 11.Click on RAID button 12.Type mount point /data 13.Select RAID Level 0 14.Click on ok 15.Then select the MBR Options, time zone and go upto package selections. It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough. X-Window System GNOME Desktop (these two packages are generally not required) Administration Tools. System Tools Windows File Server FTP Servers Mail Servers Web Servers Network Servers Editors Text Based Internet Server Configuration Tools Printing Supports When installation will complete, your system will reboot. Jump for another Question.
Fill up the Form through http://server1.example.com/form.php
Answer : 1.Open the Browser and type the above URL. 2.Fill the form as required all information.
One Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server
192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.
Answer : 1. use the authconfig --nisserver=<NIS SERVER> --nisdomain=<NIS DOMAIN> - update # authconfig --nisserver=192.168.0.254 --nisdomain=RHCE --update or system-config-authentication 2. Click on Enable NIS RHCE 4. Type Server 192.168.0.254 then click on next and ok 5. You will get a ok message. 6. Create a Directory /rhome/stationx where x is your station number. 6. vi /etc/auto.master and write at the end of file /rhome/stationx /etc/auto.home --timeout=60 7. vi /etc/auto.home and write /rhome/stationx/& please specify your station number in the place of x. 8. Service autofs restart 9. Login as the nisuser2001 or nisuser2002 on another terminal will be Success. According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config-authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address. Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On /etc/auto.master file we specified the mount point the configuration file for mount point.