RH202 RHCT (Redhat Certified Technician) RH202 Questions and Answers
Raw printer named printerx where x is your station number is installed and shared on server1.example.com. Install the shared printer on your PC to connect shared printer using IPP Protocols. Your server is 192.168.0.254.
Answer and Explanation:
1.Open the Browser either firefox or links
2.Type : http://localhost:631
3.Click on Manage Printer
4.Click on Add Printer
5.Type Queue name like stationx and click on continue
6.Type Device type or printing Protocol: i.e Internet printing Protocol
7.Click on Continue
8.Type Device URL: ipp://server1.example.com/printers/printerx
9.Click on Continue
10.Select RAW Model printer
11.Click on Continue
12.Test by sending the printing job
Create the user named eric and deny to interactive login.
Answer and Explanation:
- useradd eric
- passwd eric
- vi /etc/passwd
- eric:x:505:505::/home/eric:/sbin/nologin
Which shell or program should start at login time is specified in /etc/passwd file. By default Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive login, you should write /sbin/nologin or /bin/false instead of login shell.
Make on /data that only the user owner and group owner member can fully access.
Answer and Explanation:
1.chmod 770 /data
2.Verify using : ls –ld /data
Preview should be like:
drwxrwx--- 2 root sysadmin 4096 Mar 16 18:08 /data
To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysadmin) can fully access the directory so: chmod 770 /data
You Completely Install the Redhat Enterprise Linux ES 4 on your System. While start the system, it’s giving error to load X window System. How will you fix that problem and make boot successfully run X Window System.
Answer and Explanation:
Think while Problems occurred on booting System on Runlevel 5 (X Window).
- /tmp is full or not
- Quota is already reached
- Video card or resolution or monitor is misconfigured.
- xfs service is running or not.
Do These:
1.df –h /tmp /tmp is full remove the unnecessary file
- quota usernameif quota is already reached remove unnecessary file from home directory.
- Boot the System in runlevel 3.you can pass the Kernel Argument from boot loader.
- Use command: system-config-displayIt will display a dialog to configure the monitor, Video card, resolution etc.
- Set the Default Runlevel 5 in /etc/inittab
id:5:initdefault:
6.Reboot the System you will get the GUI login Screen.
There is a server having 172.24.254.254 and 172.25.254.254. Your System lies on 172.24.0.0/16. Make successfully ping to 172.25.254.254 by Assigning following IP:
172.24.0.x Where x is your station number.
Answer and Explanation:
- uk.co.certification.simulator.questionpool.PList@2459ea40
In the lab server is playing the role of router, IP forwarding is enabled. Just set the Correct IP and gateway, you can ping to 172.25.254.254.
You are giving RHCT Exam and in your Exam paper there is a question written, make successfully ping to 192.168.0.254.
Answer and Explanation:
In Network problem think to check:
- IP Configuration: use ifconfig command either IP is assigned to interface or not?
- Default Gateway is set or not?
- Hostname is set or not?
- Routing problem is there?
- Device Driver Module is loaded or not?
- Device is activated or not?
Check In this way:
- use ifconfig command and identify which IP is assigned or not.
- cat /etc/sysconfig/networkWhat, What is written here. Actually here are these parameters.
NETWORKING=yes or no
GATEWAY=x.x.x.x
HOSTNAME=?
NISDOMAIN=?
- uk.co.certification.simulator.questionpool.PList@2459e290
- Use netconfig command
- uk.co.certification.simulator.questionpool.PList@2459e670
- Use service network restart or start command
Now try to ping it will work.
Create one partitions having size 100MB and mount it on /data.
Answer and Explanation:
- Use fdisk /dev/hdaTo create new partition.
- Type nFor New partitions
- It will ask for Logical or Primary Partitions. Press l for logical.
- It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
- Type the Size: +100MYou can Specify either Last cylinder of Size here.
- Press P to verify the partitions lists and remember the partitions name.
- Press w to write on partitions table.
- Either Reboot or use partprobe command.
- Use mkfs –t ext3 /dev/hda?
Or
mke2fs –j /dev/hda? To create ext3 filesystem.
- vi /etc/fstab
Write:
/dev/hda?/dataext3defaults1 2
11. Verify by mounting on current Sessions also:
mount /dev/hda? /data
One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.
Answer and Explanation:
The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal-sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:
- Physical Volume (PV)is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
- Physical Extent (PE)is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
- Logical Extent (LE)is also a chunk of disk space. Every LE is mapped to a specific PE.
- Logical Volume (LV)is composed of a group of LEs. You can mount a filesystem such as /home and /var on an LV.
- Volume Group (VG)is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.
1. Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1
2. Verify the Size on mounted directory: df –h or df –h mounted directory name
3. Use : lvextend –L+400M /dev/vg0/lv1
4. ext2online –d /dev/vg0/lv1 to bring extended size online.
5. Again Verify using lvdisplay and df –h command.
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.
Answer and Explanation:
1.rpm –ivh ftp://server1/example.com/pub/updates/zsh-*
or
1.Login to ftp server : ftp ftp://server1.example.com using anonymous user.
2.Change the directory: cd pub and cd updates
3.Download the package: mget zsh-*
4.Quit from the ftp prompt : bye
5.Install the package
6.rpm -ivh zsh-*
7.Verify either package is installed or not : rpm -q zsh
Successfully resolv to server1.example.com where your DNS server is 172.24.254.254
Answer and Explanation:
- uk.co.certification.simulator.questionpool.PList@1be8dda0
nameserver 172.24.254.254
- uk.co.certification.simulator.questionpool.PList@1be8de40
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server .
Make user1, user2 and user3 belongs to training group.
Answer and Explanation:
- usermod -G training user1
- usermod -G training user2
- usermod -G training user3
- Verify from : cat /etc/group
There are two types of group, I) primary group II) Secondary or supplementary group.
- uk.co.certification.simulator.questionpool.PList@2459f1e0
Here user1, user2 and user3 belong as supplementary to training group. So these users get the permission of group member.
Install the dialog-*
Answer and Explanation:
Questions asking you to install the dialog package from the server. In your Lab FTP server as well as NFS server are configured. You can install either through FTP or NFS.
1.Just Login to server1.example.com through FTP: ftp server1.example.com
2.Enter to pub directory: cd pub
3.Enter to RedHat/RPMS: cd RedHat/RPMS
4.Download the Package: mget dialog-*
5.Logout from the FTP server: bye
6.Install the package: rpm -ivh dialog-*
7.Verify the package either installed or not: rpm -q dialog
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 and Explanation:
According to question, log server is already configured. We have to configure the mail, web and dns server for log redirection.
In mail, web and dns server:
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.
Create the user named jane and john.
Answer and Explanation:
1.useradd jane
2.useradd john
useradd command is used to create the user. All user’s information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
- uk.co.certification.simulator.questionpool.PList@2473a9e0
Answer and Explanation:
- vi /etc/auto.master
/mnt/etc/auto.misc--timeout=50
- vi /etc/auto.misc
- data-rw,soft,intrserver1.example.com:/data
- service autofs restart
- chkconfig autofs on
When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.
Create the directory /data and group owner should be the sysadmin group.
Answer and Explanation:
1.chgrp sysadmin /data
2.Verify using ls -ld /data command. You should get like
drwxr-x--- 2 root sysadmin 4096 Mar 16 17:59 /data
chgrp command is used to change the group ownership of particular files or directory.
Another way you can use the chown command.
chown root:sysadmin /data
Create the user named user1, user2, user3
Answer and Explanation:
- uk.co.certification.simulator.questionpool.PList@1be8f490
We create the user using useradd command and we change the password of user using passwd command. If you want to set the blank password use: passwd -d username.
Create the user named jane and john.
Answer and Explanation:
1.useradd jane
2.useradd john
useradd command is used to create the user. All user’s information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.