Rhcsaa Mock 2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

NOTE: Network Configuration, Baseurl for repo, Semanage might be different on your local

machine
→ It is recommended not to perform partition on vmware or your Physical machine.
→ Keep in my case-sensitivity ( Data and data are different)
Perform this task on Server1
1) Network Configuration:
Hostname: server1.lab.example.com
IP: 172.25.250.10
Subnet: 255.255.255.0
Gateway: 172.25.250.254
Name Server: 172.25.250.254
2) Configure Yum Repository:
Needed packages are available on http://content.example.com/rhel8.0/x86_64/dvd/AppStream/ and
http://content.example.com/rhel8.0/x86_64/dvd/BaseOS/
3) TroubleShoot SElinux
On servera investigate and fix the issue with the Apache HTTPD daemon, which is configured to listen
on port 82/TCP, but which fails to start. Adjust the firewall settings appropriately so that port 82/TCP is
open for incoming connections
4) User Managment
- A group named Database.
A user Natasha who belongs to Database as a secondary group.
A user Andrew also belongs to Database as a secondary group.
A user Gary who does not have access to an interactive shell on system and who not a member
of Database.
The users Natasha, Andrew, Gary has password " sestiver "
5) Collobrative Directory
- Create a collaborative directory /publicdocs/mydata.
Group ownership of /publicdocs/mydata is Database.
The directory should be readable, writable, and accessible to members of Database, but not to
any other user.
Files created in /publicdocs/mydata automatically have group ownership set to the Database
group.
6) Cronjob
- The user Andrew must configure a cron job.
The cron job runs every minute and execute '/usr/bin/echo myexam >> /tmp/exam
7) NTP Client
- Configure your system as NTP client
The NTP server is "http://classroom.example.com"
8) Configure the Autofs
- classroom.example.com exports NFS share folder /rhome to your system- remoteuserX home
directory is classroom.example.com:/rhome/remoteuserX on NFS share
- remoteuserX home directory should be auto mounted locally beneath /rhome as
/rhome/ remoteuserX when remoteuserX login into local system
- home directories must be writable by their users
9) User Creation:
- Creates a user named unameuser with following Characteristics.
The userid must be 9640.
User password must be "sestiver"
10) Set permission
- Copy the file /etc/fstab to /var/local
- Configure the permission of /var/local/fstab as below
- The file /var/local/fstab is owned by the root and also belongs to the group root
- It should not be executable by anyone.
- The the group Database should able to read and write /var/local/fstab.
- The user unameuser is able to read & write /var/local/fstab.
- The user Andrew is able to read & write /var/local/fstab.
- The user Gary can neither write nor read /var/local/fstab.
- All other user can only have the ability to read /var/local/fstab.
11) Locate Files and Directories
- Find all files & directories that is owned by group Database.
- Copy all files & directories to /var/managerdocs folder.
12) Create Archive
- Create an archive file in /srv/backlog.tar.xz
- /srv/backlog.tar.xz file contain backup of /var/log
13) Search String
- Search a string in from the file /usr/share/dict/words
- Store output to a file /tmp/ingoutput
Perform this task on Server2
1) Recover the root password:
- set root password "sestiver"
2) Network Configuration:
Hostname: server2.lab.example.com
IP: 172.25.250.11
Subnet: 255.255.255.0
Gateway: 172.25.250.254
Name Server: 172.25.250.254
3) Configure Yum Repository:
- Needed packges are available on http://content.example.com/rhel8.0/x86_64/dvd/ AppStream/ and
http://content.example.com/rhel8.0/x86_64/dvd/BaseOS/4) Create the Swap Partition
- Create a swap partition of 512MB and it persist between reboot.
5) Resize the logical Volume
- Set the size of the logical volume to 50PE under dell volume group.
( Only Possible on already existing partition)
( Please see Last Question (9))
6) Create LVM
- Create one logical volume with volume group name Alpha
- Set the size of 1PE to 32M
- Also create one logical volume to 28PE with name of Beta under volume group.
- File system must xfs and mount it under /srv/volume persistently.
7 ) Create Virtual Disk Optimizer
- Create VDO volume with name vdo1.
- Physical size of VDO device must be 5 GiB
- Set the logical size 10 times (50 GiB) the size of Physical Block device
- Mount VDO on /mnt/vdo And filesystem must be xfs
8) Tuned Profile
- Set the recommended tuned profile
9) Resize Ques
- Create a LVM
- Create a partition : 1200M
- 1PE = 16MB
- Volume Group name: dell
- logical Vol: lenevo
- Logical vol size: 20PE
- Filesystem: xfs
- Mount Point: /mnt/extend

You might also like