100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA II: Questions With Solutions (Complete) $9.99   Add to cart

Exam (elaborations)

RHCSA II: Questions With Solutions (Complete)

 1 view  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

RHCSA II: Questions With Solutions (Complete)

Preview 2 out of 5  pages

  • October 24, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
LeCrae
RHCSA II: Questions With Solutions (Complete)

Remount the / file system read/write Right Ans - mount -o remount, rw /

On serverb switch to a multiuser target. Set the dault target to multi-user
Right Ans - sudo systemctl isolate multi-user.target
sudo systemctl set-default multi-user.target

Schedule a recurring job as a student user that executes the
/home/student/backup-home.sh script on an hourly basis between 7pm and
9pm on all days except Saturday and Sunday Right Ans - crontab -e
0 19-21 * * Mon-Fri /home/student/backup-home.sh

Create a 2GiB partition on /dev/vdb Right Ans - 1. parted /dev/vdb
mklabel msdos
2. parted /dev/vdb mkpart primary 1GiB 3GiB
3. parted /dev/vdb set 1 lvm on

Create a logical volume called vol_home using 2GiB partition you created
on /dev/vdb. Name the group extra_storage Right Ans - 1. pvc create
/dev/vdb1
2. vgcreate extra-storage /dev/vdb1
3. lvcreate -L 1GiB -n vol_home extra_storage

Format vol_home with the XFS file-system type, and mount it on /home-
directories Right Ans - 1. mkdir /home-directories
2. mkfs -t -xfs /dev/extra_storage/vol_home
3. lsblk -o UUID /dev/extra_storage/vol_home
4. echo "UUID=988C... /home-directories xfs defaults 0 0" >> /etc/fstab
5. mount -a

Ensure that the network file system called /share is persistently mounted
on /local-share across reboot. The NFS server.lab.example.com exports the
/share nfs. The NFS export path is servera.lab.example.com:/share Right
Ans - 1. mkdir /local-share
2. echo "servera.lab.example.com:/share /local-share nfs rw,sync 0 0"
/etc/fstab
3. mount /local-share

, Create a new MiB partition on the /dev/vdc disk to be used as swap space.
The swap space must be automatically activated at boot time Right Ans - 1.
parted /dev/vdc mklabel msdos
2. parted /dev/vdc mkpart primary linux-swap 1MiB 513MiB
3. mkswap /dev/vdc1
4. lsblk -o UUID /dev/vdc1
5. echo "UUID=cc18... swap defaults 0 0" >> etc/fstab
6. swapon -a

Create the production1, production2, production3, and production4 users.
Ensure they use the new group called production as their supplementary
group Right Ans - 1. groupadd production
2. for i in l 1 2 3 4; do useradd -G production production$i; done

Configure your system so that it uses a new directory called /run/volatile to
store temporary files. Files in this directory should use time based cleanup if
they are not accessed for more than 30 seconds. The octal permissions for the
directory must be 0700. Make sure you use the /etc/tmpfiles.d/volatile.conf
file to configure the time based cleanup for the files in /run/volatile Right
Ans - 1. vim /etc/tmpfiles.d/volatile.conf
2. insert d /run/volatile 0700 root root 30s
3. systems-tmpfiles --create /etc/tmpfiles.d/volatile.conf

Create a new directory called /webcontent. Both the owner and group of the
directory should be root. The group members of production should be able to
read and write to this directory. The production1 user should only be able to
read this directory. These permissions should apply to all new files and
directories created under the /webcontent directory Right Ans - 1.
mkdir /webcontent
2. setfacl-m u:production1:rx /webcontent
3. setfacl -m g:production:rwx /webcontent
4. setfacl-m d:u:production1:rx /webcontent
5. setfacl -m d:g:production:rwx /webcontent
(d sets this as the fault for the directory, so all new files will also use these
ACLs)

On serverb change the default SELinux mode to permissive Right Ans - 1.
sudo vim etc/sysconfig/selinux
Enter in SELINUX=permissive

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller LeCrae. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85651 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.99
  • (0)
  Add to cart