Rhel 8 Mock Paper I
Rhel 8 Mock Paper I
Rhel 8 Mock Paper I
At first vim will not work so use vi instead of vim and once you setup the network and repos you can
install vim using below command
Yum install vim
Instructions:
• break root password and set a password as “thuctive”
Execute ifconfig command and find the interface name, we assume that interface name is “eth0”
When you try to ping from host machine if its not responding which means the configurations are not
correct.
DEVICE=eth0
IPADDR=172.25.x.11
GATEWAY=172.25.x.254
DNS1=172.25.254.254
ONBOOT=yes
BOOTPROTO=static
NETMASK=255.255.255.0
Reboot the server after the network settings then u must be able to connect
from host machine.
# vim BaseOS.repo
[abc]
name=BaseOS
baseurl=http://content.example.com/rhel8.0/x86_64/dvd/BaseOS
gpgcheck=0
enabled=1
# vim AppStream.repo
[cdf]
name=AppStream
baseurl=http://content.example.com/rhel8.0/x86_64/dvd/AppStream
gpgcheck=0
enabled=1
# useradd Harry
# useradd Natasha
# useradd -s /sbin/nologin sarah
# groupadd materials
# usermod -aG materials Harry
# usermod -aG materials Natasha
# su - paula
# crontab -e
*/3 * * * * logger “rhcsa exam in progress”
# crontab -l (Verify)
# mkdir /home/groupdata
# chown :materials /home/groupdata
# chmod g+s /home/groupdata
Question 11. Mount remoteuser from utility.node.example.com:/ruser/remoteuser5 to your server using autofs
1. mount remoteuser8 from utility.node.example.com:/ruser/remoteuser5 to this server
/ruser/remoteuser5
2. the user should have write permission create files
3. use the remoteuser password “thuctive”
#vim /etc/auto.master.d/shares.autofs
/ruser /etc/auto.demo
#vim /etc/auto.demo
Remoteuser5 -rw utility.node.example.com:/remote/remoteuser5
Question 12. There is a website not working correctly debug the issue and bring the site working on port 82
2. the site is hosted under /var/www/html
3. files under /var/www/html must remain same (file1 file2 and file3)
4. the website is http://node1.server5.example.com when access the site prompts error
man semanage-port (in this page you can get the below command to relabel a
port)
#vim /etc/chrony.conf
Remove pool line
And add below
server utilty.node.example.com iburst
#systemctl restart chronyd
Using William account run a container from the registry image contvc-temp-img
Container should start automatically at boot and service must be managed under
William and service name must be container-logserver.service
Mkdir ~/.config/systemd/user
Cd ~/.config/systemd/user
Podman generate systemd –-name logserver –-files –new
Loginctl enable-linger
When u run below inside container it must appear inside container_journal dir
on host machine
You must read this question first if so before running container in previous
question do below
As user William
Mkdir ~/container_journal
Question 16)
There is an executable ex200 and this must print “burah condest enchor abi”,
only user Pandora can execute this
Which ex200
There is a binary under /usr/local/bin/ex200 (backup and remove this )
Touch /usr/local/bin/ex200
Echo “burah condest enchor abi”
Setfacl –m u:Pandora:rwx /usr/local/bin/ex200