Redhat Linux 9 Lab: RHCSA Practice Exam A, part 1



Redhat Linux 9 Lab: RHCSA Practice Exam A, part 1

Redhat Linux 9 Lab:  RHCSA Practice Exam A, part 1

https://www.youtube.com/playlist?list=PLIpLw6v7Z1qmty_yT3KQUeV5jW46Wu7hG Link playlist
Red Hat Enterprise Linux Administration
https://www.youtube.com/playlist?list=PLIpLw6v7Z1qnIUiJipjgYEHwxF16TZbCN

2023 09 08 22 45 22

1. Install a RHEL 9 virtual machine that meets the following
requirements:
1. 2 GB of RAM
2. 20 GB of disk space using default partitioning
3. One additional 20-GB disk that does not have any
partitions installed
4. Server with GUI installation pattern
2. Create user student with password password, and user root
with password password.
3. Configure your system to automatically mount the ISO of the
installation disk on the directory /repo. Configure your
system to remove this loop-mounted ISO as the only
repository that is used for installation. Do not register your
system with subscription-manager, and remove all
references to external repositories that may already exist.
4. Reboot your server. Assume that you don’t know the root
password, and use the appropriate mode to enter a root shell
that doesn’t require a password. Set the root password to
mypassword.
5. Set default values for new users. Set the default password
validity to 90 days, and set the first UID that is used for new
users to 2000.
6. Create users edwin and santos and make them members of
the group livingopensource as a secondary group
membership. Also, create users serene and alex and make
them members of the group operations as a secondary
group. Ensure that user santos has UID 1234 and cannot start
an interactive shell.
7. Create shared group directories /groups/livingopensource
and /groups/operations, and make sure the groups meet the
following requirements:
1. Members of the group livingopensource have full access to
their directory.
2. Members of the group operations have full access to their
directory.
3. New files that are created in the group directory are group
owned by the group owner of the parent directory.
4. Others have no access to the group directories.
8. Create a 2-GiB volume group with the name myvg, using 8-
MiB physical extents. In this volume group, create a 500-MiB
logical volume with the name mydata, and mount it
persistently on the directory /mydata.
9. Find all files that are owned by user edwin and copy them to
the directory/rootedwinfiles.
10. Schedule a task that runs the command touch /etc/motd
every day from Monday through Friday at 2 a.m.