Write a script that will accept argument

Assignment Help Basic Computer Science
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.

Reference no: EM132665718

Questions Cloud

Provided with strong educational programs : It is priority that students are provided with strong educational programs, courses that allow them to be servant-leaders in their disciplines and communities
Describe the selected environmental factor : Describe the selected environmental factor. Explain how the environmental factor you selected can potentially affect the health or safety of infants.
Methodology plan for your dissertation research : You will want to focus on ensuring that you are able to expand your methodology plan for your dissertation research.
Baseline security requirements : What are baseline security requirements that should be applied to the design and implementation of applications, databases, systems, network infrastructure,
Write a script that will accept argument : Write a script that will accept 4 arguments. Your script need to create a user account include the full name and primary group.
How skill improve your effectiveness as a practice scholar : The purpose of this activity is to deepen learning through reflective inquiry. It will allow for expansion in self-awareness, identification of knowledge gaps.
How do estimate the weighted average cost of capital : Estimate the weighted average cost of capital (WACC) for both divisions and with your calculations explain if both these divisions are a viable investment?
Risk assessment and mitigation template : Complete the Risk Assessment and Mitigation Template. Explain each risk's impact on the organization.
Should the offer be accepted and explain why : Should the offer be accepted if there are no alternatives uses for the manufacturing capacity currently being used to produce the casings? Why?

Reviews

len2665718

10/16/2020 1:14:37 AM

I need assistance with completing this Linux assignment. I need the Linux script to the problems attached. Looking to see if I could have it completed in the next 12 hours or sooner.

Write a Review

Basic Computer Science Questions & Answers

  Effective enterprise risk management

The following material may be useful for the completion of this assignment. You may refer to the documents titled "Embracing Enterprise Risk Management: Practical Approaches for Getting Started" and "Developing Key Risk Indicators to Strengthen En..

  Design a suitable source document for ads

Suggest several types of controls that might be used on the switchboard you plan to design. Explain why you chose each control, and create a storyboard that shows the switchboard layout.

  What could encourage or force companies to change to ipv6

What could encourage or force companies to change to IPv6?

  Write select statement determines paymentdate column invoice

Write a Select statement that determines whether the PaymentDate column of The Invoices table has any invalid values.

  Comparative analysis of various tools useful in policy

How these tools could be used to develop policy for optimizing bus and local train schedules to minimize energy use, passenger wait times in SmartCity

  Different uses of these tools besides cryptography

What are the different uses of these tools besides cryptography? How do they work?

  Discuss and identify leader traits and attributes

Discuss and identify leader traits and attributes that are most beneficial in implementing the best decisions in an organization.

  What is the result of segmenting a network with a bridge

What is the result of segmenting a network with a bridge (switch)?

  Describe semi-supervised classification

(a) Describe semi-supervised classification, active learning, and transfer learning. Elaborate on applications for which they are useful, as well as the challenges of these approaches to classification.

  Information governance to business organizations

The Importance of Information Governance to Business Organizations.

  Various stakeholders involved in system development

Why is it important to rank the importance of various stakeholders involved in system development?

  Methodology for utilizing the framework

1. Provide a depiction (i.e., a diagram) of the components of the framework. You may take this from any source, as long as you cite it. 2. Provide a brief description of the each of the components of the framework. 3. Identify a methodology for uti..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd