Sample Question (RHCSA)
Sample Question (RHCSA)
IP Address: 172.25.X.11
Netmask: 255.255.255.0
Gateway: 172.25.X.254
DNS: 172.25.254.254
Hostname: serverX.example.com
0
Question-2:
20
Configure your servera VM repository with the following package distributions available via
YUM:
-x
Base OS URL: http://content.example.com/rhel9.0/x86_64/dvd/BaseOS
A
App Stream URL: http://content.example.com/rhel9.0/x86_64/dvd/AppStream
C
Question-3:
SELinux Port Configuration:
H
R
In your system, the httpd service has some files in /var/www/html (do not change or alter files).
Resolve the problem: the httpd service is having issues and is not running on port 82.
an
Question-4:
Create the following users, groups, and group memberships:
A group named sysadm.
m
All users (harry, natasha, sarah) should have the password password.
The sysadm group has access to add users to the server.
ur
The user harry has access to set passwords for users without asking for the sudo password.
Question-5:
an
The directory should be readable, writable, and accessible to members of the sysadm group,
M
0
Create a tar archive of the /etc/ directory with the .bzip2 extension:
20
Name the archive myetcbackup.tar and place it in the /root/ directory.
Question-9:
-x
Copy the file /etc/fstab to /var/tmp. Configure the permissions of /var/tmp/fstab so that:
A
The file /var/tmp/fstab is owned by the root user.
The file belongs to the group root.
C
The file should not be executable by anyone.
The user natasha can read and write /var/tmp/fstab.
H
The user harry cannot read or write /var/tmp/fstab.
Question-10: R
Configure your system to synchronize the time from classroom.example.com.
an
Question-11:
m
Find all files and directories created by the user natasha on this system and copy them into the
/root/natashafiles directory.
ah
Question-12:
R
Find all strings containing ich from the /usr/share/dict/words file and copy them into a /root/lines
file.
ur
Question-13:
an
Question-14:
iz
Configure your serverb VM repository with the following package distributions available via
M
YUM:
Base OS URL: http://content.example.com/rhel9.0/x86_64/dvd/BaseOS
App Stream URL: http://content.example.com/rhel9.0/x86_64/dvd/AppStream
Question-15:
Create an LVM named wshare from the wgroup volume group:
PE size should be 8MB. LVM size should be 50 extents.
Format with the ext4 filesystem and mount it under /mnt/wshare. It should auto-mount after the
next reboot.
The exam can also have filesystems: vfat, xfs.
Question-16:
Create a swap partition of 400MB and make it available permanently.
0
Question-17:
20
Resize your vo logical volume. It should be approximately 300MB (note: only sizes between
270MB and 290MB are accepted).
-x
Question-18:
A
Configure the recommended tuned profile.
C
Question-19:
H
Build an application rhcsa that prints the message when logged in as the user ablerate:
"Welcome to user ablerate."
Question-20:
R
an
Download the Containerfile from http://classroom.example.com/Containerfile:
Do not make any modifications.
m
Configure the service to automatically mount the directory /opt/file to container directory
/opt/incoming and user directory /opt/processed to container directory /opt/outgoing.
Configure it to run as a systemd service that should run from the existing user xanadu only.
ur
The service should be named mycontainer and should automatically start on a system reboot
without any manual intervention.{}
an
iz
M