Red Hat Section 15.6 Lab: Mount File Systems and Find Files
Step 4: Locate the review5-path file. Save its absolute path in the /review5-disk/review5-path.txt file.
# find / -iname review5-path 2>/dev/null # cat /review5-disk/review5-path.txt
Step 6: Locate all the files with a size of 100 bytes. Save the absolute paths of these files in the / review5-disk/review5-size.txt file.
# find / -size 100c 2>/dev/null # cat /review5-disk/review5-size.txt # exit $ exit
Step 5: Locate all files that the contractor1 user and the contractor group own. The files must have 640 octal permissions. Save the absolute paths of these files in the /review5-disk/review5-perms.txt file.
# find / -user contractor1 \ -group contractor -perm 640 2>/dev/null sudo find / -name review5-perms 2>/dev/null vim /review5-disk/review5-perms.txt Press i Paste review5-perms Press Esc Save and quit the file by typing :wq and then pressing Enter # cat /review5-disk/review5-perms.txt
Step 3: Identify the unmounted block device that contains an XFS file system on the serverb machine. Mount the block device on the /review5-disk directory.
# lsblk -fs NAME FSTYPE LABEL UUID MOUNTPOINT ...output omitted... vdb1 xfs 7694653c-45f6-4749-bd87-f2f69c37daa7 # mkdir /review5-disk # mount /dev/vdb1 /review5-disk # df -Th
Step 7: Grade and Finish
$ lab grade rhcsa-rh124-review5 $ lab finish rhcsa-rh124-review5
Step 1: Start lab
$ lab start rhcsa-rh124-review5
Step 2: Log in to the serverb machine as the student user and switch to the root user.
$ ssh student@serverb $ sudo -i password for student: student