Thursday, March 18, 2021

RHEL - example sample questions

EXAM 2-1/2 Hrs

RHCSA

Your network setup

Your Domainname:- example.com Other Domainname:- remote.test

Your Network 172.25.X.0/255.255.255.0 Other Network 172.24.1.0/255.255.255.0

Hostname serverX.example.com

IP Address 172.25.X.11 Note:- Where your system represent your system number 1 to 20

Netmask 255.255.255.0

Gateway 172.25.254.254

Nameserver 172.25.254.254

FTP/HTTP Server Name:- classroom.example.com Server IP Address:- 172.25.254.254

NFS Share Folder /content/rhel7.0/x86_64/dvd FTP/HTTP Yum Path 172.25.254.254/content/rhel7.0/x86_64/dvd

Your root user password is your host name serverX for example host name server11.example.com, so password is server11

1. Increase the logical volume size of 15 extent on /home directory.

2. To create a new 500 MB physical partition mounted on /common with xfs filesystem. Note because partition sizes are seldom exactly what is specified when you are created, anything with range of 475MB to 525 MB is acceptable

3. Create the following users,groups and group memberships: a) A group named admin. b) A user harry who belongs to admin as a secondary group. c) A user natasha who belongs to admin as a secondary group. d) A user sarah who does not have access to an interactive shell on the system and who is not member of admin. e)b) A user sandy who belongs to admin as a secondary group. e) harry,natasha,sarah,sandy should all have password of password.

4. Create a collaborative directory /common/admin with the following characterstics:

i) Group ownership of /common/admin is admin.

ii) The directory should be readable,writable and accessible to members of admin,but not to any other user.

(It is understood that root has access to all files and directories on the system.)

iii) Files created in /common/admin automatically have group ownership set to the admin group.

5. Harry set his own job schedule on 12.30 at noon print /bin/echo on "hello".

6.Install the appropriate kernel update from http://classroom.example.com/content/rhel7.0/x86_64/errata/ The following criteria must also be met: i) The updated kernel is the default kernel when the system is rebooted . ii) The original kernel remains available and bootable on the system.

7. create a swap partition 512MB size.

8. Create a web server to include a host for the site http://serverX.example.com/,where X is your station number, then perform the following steps:

a) Set DocumentRoot to /var/www/html b) The apache hosting file is contain path http://classroom.example.com/htmlfile .

9. Bind to the LDAP domain example.com provided by classroom.example.com for user. authentication.Note the following: i) ldapuserX should be able to log into your system, where X is your server number, but will not have a home directory until you have completed the autofs requirement below. ii) All ldap users have a password of password .

iii) Note:your ldap user TLS certificate path http://classroom.example.com/pub/example-ca.crt.

10. Configure autofs to automount the home directories of LDAP users. Note the following: i) classroom.example.com (172.25.254.254) NFS -exports /home/guests to your system, ii) ldapuserX's home directory is classroom.example.com:/home/guests/ldapuserX. where X is your station number . iii) ldapuserX's home directory should be automounted locally mapped to /home as /home/guests. iv) home directories must be writable by their users. v) While you are able to log in as any of the users ldapuser1 through ldapuser20, the only home directory that is accessible from your system is ldapuserx. Example: station100 would configure the automounter such that ldapuser100's home directory /home/guests gets mounted automatically upon login.

11. Copy the file /etc/fstab to /var/tmp. Configure the permission of /var/tmp/fstab so that:

i) The file /var/tmp/fstab is owned by root user.

ii) The file /var/tmp/fstab is belongs to the group root.

iii) The file /var/tmp/fstab is should not be executable by anyone.

iv) The user harry is able to read and write by /var/tmp/fstab.

v) The user natasha can neither read nor write /var/tmp/fstab.

vi) All other users (current / future) have the ability to read /var/tmp/fstab.

12. Configure your system so that it is an NTP client of classroom.example.com.

13. Find the owner of the file sandy to copy the file to given path of /root/find.user.

14. Create one logical volume named database and it should be on datastore volume group with size 50 extent.

(i) the datastore volume group extend should be 16MiB. (ii)mount the logical volume under mount point /mnt/database.

15. To create a new user with UID 1326 alies.

16. To Enable FTP service on your stystem and anonymous user's can download options avilable on your server

17. To find the string "home" in /etc/passwd and searching string as been stored in /root/search.txt

18. The initial size of that logical volume database is 800MB. Make successfully reduce the size of logical volume 500MB without losing any data.

0 Comments: