You have 120 minutes to finish this exam. The exam starts after you finish the Preliminary tasks.
Preliminary Tasks:
Build a virtual machine with the following specifications:
The virtual machine will have a 10 GB disk space for the Operating System.
Add three 1 GB disks to the virtual machine.
Add three 2 GB disks to the virtual machine.
You have 120 minutes now to complete the following tasks. Good Luck!
Create three users jerry, kobe, and lebron. All three users must change their password upon their first login.
Create a group named nba and jerry, kobe, and lebron to it. All members of the nba group should have access to install any package on the system.
Create a directory named ` /staples ` and make lebron the owner of this directory. All the three members of the nba group should have full permissions to the ` /staples ` directory.
Create a new file named champion.txt in ` /staples `.
kobe should be the owner of the file champion.txt and lebron should have read access to the champion.txt file.
The champion.txt file should NOT be modified or deleted by any user on the system.
Create a soft link to your tmp directory called mytemp in var. Also create a hard link for the ` /etc/services ` file named ports.txt in ` /root `.
Create a file named file1 in ` /root ` and make sure this file cant be deleted. Furthermore, give jerry read access to file1.
Create a new user Mary to the system, with a nologin shell. Make a copy of the file ` /etc/passwd called /root/passwd.bk ` and allow Mary to read and write to the file ` /root/passwd.bk `
Find all the file names under ` /etc ` that begins with letter v and ends with .conf
As the root user, create a crontab entry that runs every 2 minutes to update the timestamp of the ` /etc/passwd file.
Set up a cron job as jerry user to search for log files in the ` /var ` directory and list them in ` /var/log/logfiles `. This job should run every Monday at 1:20 am system time.
Permanently disable SELinux on your system and change your default target to multi-user target.
The virtual machine should have an IP address of 192.168.100.113. You should configure 8.8.8.8 as the DNS server.
Install and configure Apache web server. Change the Apache default directory to ` /web/html ` and make sure it works. Apache service should start automatically upon server reboots.
Create a volume group named myvg that spans two of your three available secondary disks.
Create two logical volumes named mylv1 and mylv2 with a size of 500MB for each one of them.
Create an ext4 filesystem on the mylv1 logical volume and mount it permanently on the ` /myfiles ` directory with the label FILES.
Extend the logical volume mylv2 to 500MB.
Create a 1 GB swap partition using the third available secondary disk on your system. Mount it permanently using a UUID.
Activate a network-latency tuned profile on your system.
You forgot the root password on the virtual machine. Reboot the VM and reset your root password.
Choose any free disk to create a 1GB Stratis pool named mystratis. Then create two Stratis filesystems named, FS1 and FS2. Mount both filesystems permanently on ` /FS1 ` and ` /FS2 `.
Using any free 1GB disk; create a vdo volume named myvdo with a logical size of 1 Terabytes. Then create an XFS filesystem using the myvdo volume and mount it permanently on /compressed_disk .
Using tempfiles, create a temporary directory named mylogs in ` /var/log ` with world permissions.
Set your timezone to ` America/New_York `. Make sure NTP is active and synchronized.