Sei sulla pagina 1di 4

6

More

Next Blog

Create Blog Sign In

Linux Tutorial For Beginners..


Be the best of yourself to create anything in Linux world
Home

Download Links

Linux Interview Questions

Blog Archive
2014 (3)
2013 (4)
Dec (4)
RHSystem Administration
Courses
RHCE 6.0 Exam Practice
Question Paper with Answer...
RHCSA 6.0 Exam Practice
Question paper with Answer...

About

Sunday, 8 December 2013

Search here
Search

RHCSA 6.0 Exam Practice Question paper with Answers


Labels
RHCSA I

Translate
1. Recover root password and

Select Language
Translate

Powered by

1. Assign the static

Basic Vi Commands...

o IP: 192.1680X (X being your stat ion number)

Popular Posts

o Netmask: 255255.255.0

RHCSA 6.0 Exam Practice Question


paper with Answers

o Gateway: 192168.01

RHCE 6.0 Exam Practice Question


Paper with Answers

o DNS: 192.168.0.254

RHSystem Administration Courses


Basic Vi Commands...

AdSense

Google+ Followers
Linux Tutorial For Beginner
Follow

A. Press a at the kernel, enter the Maintenance mode ->


a. Setenforce 0 (setting the sestatus to Permissive Mode), but make sure this is in Enforcing mode in
/etc/sysconfig/selinux)

Nagios Monitoring Server


Configuration in Linux

b. Enter setup at the command prompt and set the static IP & Hostname

7 have us in circles

HTTPS setup using mod_ssl on CentOS


- Part 1 & 2..

c. Iptables F

Total Pageviews

Database Server Setup using MySQL


on CentOS - Part 1 & 2 & 3.

d. service iptables save

(To FLUSH the iptables)

View all

10,405

2. Set the Hostname: station.domainX.example.com [X is your system IP]

AdSense

2. Create a
a. Group named: sysmgrs:
b. User named Natasha who belongs to sysmgrs as a secondary group
c. User harry who belongs to sysmgrs as a secondary group
d. User sarah who does not have access to an interactive shell & who is not a member of sysmgrs group

AdSense

e. All the users should have password as password


A. UserAdministration:
a. groupadd sysmgrs
b. useradd G sysmgrs natasha
c. useradd G sysmgrs harry
d. useradd s /bin/false sarah
e. echo passwd | --stdin passwd {natasha, harry, sarah}
3. Created a directory: /shared/sysmgrs such that:
a. Group ownership of /shared/sysmgrs is sysmgrs
b. The directory should be readable, writable, and accessible to the members of sysmgrs, but not to any other user (it is
understood that root has access to all the files and directories on the system)
c. Files created in /shared/sysmgrs automatically have group ownership set to sysmgrs group.
A. ACL:
a. mkdir p /shared/sysmgrs
b. chgrp sysmgrs /shared/sysmgrs
c. chmod 2770 /shared/sysmgrs (SGID)
4. Install the appropriate kernel update from ftp://instructor.example.com/pub/updates Following Criteria must also be met:
a. Tue updated kernel is the default kernel when the system is rebooted.
b. The original kernel remains available and bootable on the system.
A. Kernel Update
a. wget ftp://instructor.example.com/pub/updates/kernel*

converted by Web2PDFConvert.com

b. rpm ivh kernel*


c. Reboot the system to confirm that you are the kernel is updated successfully and to ensure that you are logged in
to the new kernel by default
d. uname r

(to check the new kernel)

5. The user Natasha must configure a cron job that runs daily @ 15:25 local time and executes:
a. /bin/echo Helloo
A. Crontab e u natasha
B. 23

14

/bin/echo Hello

6. Configure your machine as LDAP client. LDAP server and LDAP directory tree information will be given in the exam:
a. ldapuserX should be able to log into your system, where X is your s tation number, but will not have a home directory
until you have completed the autofs requirement.
b. All ldapuser users have a password of password
c. Configure LDAP search Base DN with: dc=example, dc=com
d. LDAP server URL: ldap://instructor.example.com
e. Download CA certificate from URL: http://instructor.example.com/example-ca.crt
A. LDAP Client
a. system-config-authentication
b. Fill in the blanks with the above information
7. Configure autofs requirement:
a. Instructor.example.com (192.168.0.254) NFS exports /rhome for ldapuser
b. ldapuserXs home directory is instructor.example.com:/rhome/ldapuserX, where X is your station number
c. ldapuserXs homedirectory should be automounted locally beneath /rhome as /rhome/ldapuserX
d. home directories must be writable by their users
e. while you are able to log in as any of the user, ldapuser1 through ldapuser10 the only homedirectory that is
accessable from your system is ldapuserX
i. Example>: station2 would configure the automounter such that ldapuser2s homedirectory /rhome/ldapuser2
ii. Automatically upon login. The NFS share would be: instructor.example.com/rhome/ldapuser2
iii. NOTE: Now check login through your ldapuserX from the terminal & only your stat ion ldapuser will get the
home directory
A. AUTOFS:
a. vim /etc/auto.master (make the following entry)
i. /rhome
b. vim /etc/auto.misc
i. ldapuser2

/etc/auto.misc

(save and exit)

(make the following entry)


instructor.example.com:/rhome/ldapuser2

(Save & Exit)

c. service autofs reload


d. chkconfig autofs on
e. configure the entry in /etc/fstab of NFS if needed
8. Copy the file /etc/fstab to /var/tmp. Configure the permissions of /var/tmp/fstab so tha:
a. The file /var/tmp/fstab is owned by the root user
b. The file /var/tmp/fstab belong to the group: root
c. The file /var/tmp/fstab shold be executable NOT be anyone
d. User natasha can read & write the file /var/tmp/fstab
e. User harry can neither read nor write the file /var/tmp/fstab
f. All other users (current or future) have the ability to read file /var/tmp/fstab
A. ACL:
a. mkdir /var/tmp
b. cp /etc/fstab /var/tmp/
c. getfacl /var/tmp/fstab
d. setfacl /etc/fstab m u:natasha:rw- /var/tmp/fstab
e. setfacl /etc/fstab m u:harry:--- /var/tmp/fstab

converted by Web2PDFConvert.com

f. setfacl /etc/fstab m o::r-- /var/tmp/fstab


g. getfacl /var/tmp/fstab

(Finally to verify our settings)

9. Configure your system as NTP client to: instructor.example.com


a. System-config-date
b. DELETE THE EXISTING NTP servers AND ADD THE instructor.example.com & press TAB
c. ntpq p

(To verify the NTP Server the system is listening to)

d. service ntpd restart


e. chkconfig ntpd on
10. Configure your system for FTP Server for anonymous download
A. Configure YUM for the given path:
a. vim /etc/yum.repos.d/yum.repo

(OR Add a new entry in the existing Yum)

i. base
ii. name=base
iii. baseurl=<URL>
iv. gpgckeck=0
b. yum update

(SAVE & EXIT)


(TO VERIFY IF THE NEW YUM WORKING FINE)

c. yum clean all


d. yum install vsftpd*
e. chkconfig vsftpd on
f. vim /etc/vsftpd/ftpusers

(ADD THE USERS TO RESTRICT)

g. vim /etc/access.deny
i. vsftpd:

(ADD THE HOSTS TO DENY ACCESS)


ALL EXCEPT .example.com

h. service vsftpd restart


11. Resize the LVM to 250M /home
A. LVM RESIZE:
a. lvdisplay

(TO CHECK THE CURRENT SIZE)

b. FOR LVREDUCE
c. mkdir /bkup && cp a /home/* /bkup (BACKUP HOMEDIRS)
d. umount /home
e. fsck f <HOME LVM>
f. resize2fs p <HOME LVM PATH> XM

(X is the required size to set)

g. lvresize (lvreduce) L <XM> <LVM PATH>


h. mount a
i.

FOR LVM-INCREASE

j. lvresize (OR lvincrease) L XM <LVM PATH>


k. resize2fs p <LVM PATH>
12. Create a swap partition of 756M and make it available permanent
a. Create LVM for the required size
b. Toggle its flag to 82

(Write & Quit)

c. partx a /dev/vda
d. mkswap /dev/vdaN

(Where N is the partition number)

e. swapon /dev/vdaN
f. swapon a
g. swapon s

To Display the current active swap partitions)

h. vim /etc/fstab
i. /dev/vdaN

swap

swap

defaults

00

13. Create the LV of size 50 Physical Extent value by creating vg of size 16MB & mount it on /mnt/data2 directory
A. LVM

converted by Web2PDFConvert.com

a. Create a new partition of 805 M and convert it to LVM


b. pvcreate /dev/vda6
c. vgcreate s 16M <VG NAME> /dev/vda6
d. lvcreate L 800M n <LV NAME> <VGNAME>
e. mkfs.ext4 <LVM PATH>
f. mkdir /mnt/data2
g. vim /etc/fstab
i. <LV PATH>
h. mount a

/mnt/data2

FS

defaults

12

(To verify if it mounts properly REBOOT if needed)

14. Configure web server


a. Download ftp://instructor.example.com/pub/rhce/station.html
b. Rename the downloaded file to index.html
c. Copy this index.html file to the DocumentRoot of your Web Server
d. Do NOT make any modifications to the content of index.html
A. APACHE
a. yum install httpd*
b. chkconfig httpd on
c. cd /var/www/html
d. wget ftp://instructor.example.com/pub/rhce/station.html
e. mv station.html index.html
f. vim /etc/httpd/conf/httpd.conf

(Make the following entry)

i. <VirtualHost <IP>:80>
ii. ServerName

station.domainX.example.com

iii. DocumentRoot /var/www/html


iv. </VirtualHost>
15. Find a file created by a user harry and copy it into /root/findfile directory
A. FIND:
a. mkdir /root/findfile
b. find / -type f user harry exec cp {} /root/findfile \;
16. Find a string root from the file: /etc/passwd and copy that string in a /root/test file
A. grep root /etc/passwd > /root/test
17. Create a user manalo with user ID 5233
A. User Administration:
a. useradd u 5233 manalo
b. echo passwd | --stdin passwd manalo

******

Posted by Raj Arjun at 19:47

*******

********

+6 Recommend this on Google

No comments:
Post a Comment

Newer Post

Home

Older Post

Subscribe to: Post Comments (Atom)

Google 2013 . Picture Window template. Powered by Blogger.

converted by Web2PDFConvert.com

Potrebbero piacerti anche