Reference no: EM132665718
Question 1.) Write a script that will accept 4 arguments. Your script need to create a user account include the full name and primary group. The home directory should match the primary group name but in uppercase. Your script should test if the primary group exist and if not create it. Also, your script should test if the sub-directory under the /home directory exist and if not create it.
The arguments are as follows:
First argument: username
Second argument: first name
Third argument: last name
Fourth argument: primary group
Question 2.) Create a blank called /root/firstlastname.txt. Replace firstlastname with your actual first and last name.
Question 3.) Statically configure the IP settings and hostname for rhs1 using the following information:
IP Address: 10.0.0.50/24
Gateway: 10.0.0.1
DNS Servers: 8.8.8.8,8.8.4.4
Hostname: rhs1.example.com
Question 4.) Statically configure the IP settings and hostname for rhs2 using the following information:
IP Address: 10.0.0.51/24
Gateway: 10.0.0.1
DNS Servers: 8.8.8.8,8.8.4.4
Hostname: rhs2.example.com
Question 5.) Configure local name resolution on both rhs1 and rhs2, so each VM can connect to the other vm using either long or short name.
Question 6.) Configure rhs2 as a webserver. Both, rhs1 and rhs2 should be able to access the web site.
Question 7.) Configure SSH so you are able to log in as student on to rhs2 from rhs1 as student with no password.
Question 8.) Prevent root from logging in via SSH on rhs2.
Question 9.) Configure a traditional Linux partition on rhs2 using all the available space on /dev/vdb. Format it with xfs and mount it to /mnt/data.
Question 10.) Configure a LVM partition on rhs2 using all the available space on /dev/vdc and /dev/vdd. Format it with xfs and mount it to /mnt/public.