0% found this document useful (0 votes)
297 views3 pages

Sample Question (RHCSA)

The document outlines a series of configuration tasks for a server setup, including TCP/IP configuration, YUM repository setup, SELinux port configuration, user and group management, directory permissions, cron jobs, NFS automounting, file archiving, permissions management, time synchronization, file searching, LVM creation, swap partition setup, logical volume resizing, tuned profile configuration, application building, container image creation, and service management. Each question specifies detailed requirements and expected outcomes for the respective configurations. The tasks are aimed at ensuring proper server functionality and security.

Uploaded by

Mizanur Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
297 views3 pages

Sample Question (RHCSA)

The document outlines a series of configuration tasks for a server setup, including TCP/IP configuration, YUM repository setup, SELinux port configuration, user and group management, directory permissions, cron jobs, NFS automounting, file archiving, permissions management, time synchronization, file searching, LVM creation, swap partition setup, logical volume resizing, tuned profile configuration, application building, container image creation, and service management. Each question specifies detailed requirements and expected outcomes for the respective configurations. The tasks are aimed at ensuring proper server functionality and security.

Uploaded by

Mizanur Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Question-1:

Configure TCP/IP and "hostname" as follows:

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

A user harry who belongs to sysadm as a secondary group.


ah

A user natasha who belongs to sysadm as a secondary group.


A user sarah who does not have access to an interactive shell and is not a member of the
sysadm group.
R

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

Create a collaborative directory /shared/sysadm with the following characteristics:

Group ownership of /shared/sysadm is sysadm.


iz

The directory should be readable, writable, and accessible to members of the sysadm group,
M

but not to any other users.


Files created in /shared/sysadm automatically have group ownership set to the sysadm group.
Question-6:
Set a Cron job for the user Natasha that runs daily every 1 minute local time and executes
"Ex200 Testing" with logger.
Question-7:
Configure autofs to automount the home directories of netuserX:
netuserX's home directory is exported via NFS from classroom.example.com (172.25.254.254).
The NFS exports directory is /netdir.
The home directory should be automounted using autofs.
Home directories must be writable by their users.
The password for netuserX is ablerate.
Question-8:

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

Create a user unilao with UID 2334 and password ablerate.

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

Build the image with this container file.


Question-21:
ah

Configure a container to start automatically:


Create a container named mycontainer using the image built previously.
R

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

You might also like