Exam
Exam
hostname =servera.lab.example.com
ip-address =172.25.250.10
subnetmask =255.255.255.0
gateway =172.25.250.254
dns =172.25.254.254
dns-serach =lab.example.com
Q2. Configure YUM repository with the 2given links (BaseOs and AppStream)
BaseOs: http://content.example.com/rhel8.0/x86_64/dvd/BaseOS
AppStream: http://content.example.com/rhel8.0/x86_64/dvd/AppStream
Web server running on non-standard port “82” is having issues serving content. Debug and fix the
issues.
-The web server can server all the existing HTML files from '/var/www/html', Don't make any changes to
these files.
Q4. Create User accounts with supplementary group. -group: sysadms -users: natasha harry sarah (with
nologin shell) -natasha and harry should be the member of sysadms group. -password for all users
should be "trootent"
Q5. Cron Job -Configure a cron job that runs every 1minutes and executes: logger "EX200 in progress" as
the user natasha. -Configure a cron job for user "natasha", cron must runs daily at 2:23pm and inside
executes the /usr/bin/echo "welcome".
Q6. Create a collaborative DIR. (change group owner, set the permissions along with sgid) -Create the
Directory "/home/sysadms" with the following characteristics. -Group ownership of "/home/sysadms"
should go to "sysadms" group. -The directory should have full permission for all members of "sysadms"
group but not to the other users except "root". -Files created in future under "/home/sysadms" should
get the same group ownership.
Q9. copy ‘/etc/fstab’ file to ‘/var/tmp/’ then configure ‘/var/tmp/fstab’ file permissions with ACL -The
file /var/tmp/fstab should owned by the "root". -The file /var/tmp/fstab should belongs to the group
"root". -The file /var/tmp/fstab should not be executable by any one. -The user "sarah" should able to
read and write to the file. -The user "harry" can neither read nor write to the file. -Other users (future
and current) shuold be able to read /var/tmp/fstab.
Q10. Create user 'bob' with 2112 uid and set the password 'trootent'
Q11. Locate all files owned by user 'harry' and copy it under '/root/harry-files'
Q12.Find a string 'ich' from '/usr/lib/mem/ex200/samplefile.txt' and put it into '/root/lines' file.
Q18. Create a logical Volume and mount it permanently. - Create the logical volume with the name
"wshare" by using 50PE's from the volume group "wgroup". - Consider each PE size of volume group as
"8MB". - Mount it on '/mnt/wshare' with file system vfat.
Q19. VDO -Create the VDO volume labvdo, with the device /dev/vdd. -Set its logical size to 50GB. -
Mount the volume labvdo on /labvdovol with the XFS file system so that it persists across reboots.
Q20.Configure System Tuning: -Choose the recommended 'tuned' profile for your system and set it as
the default.
Q21. Create a container with the name, “logserver” from rhel8/rsyslog image from
registry.lab.example.com registry.
configure the container with systemd services as the wallah user using the service name, “container-
logserver” so that it can be persistent across reboot.
Use “administrator” as the username and “admin123” as the credentials for the image registry.
use wallah as wallah’s password. No root password is needed because wallah is a sudo user.