Question

plz EXPLAIN AND show me the screenshot how TO DO THESE! Perform all of the following...

plz EXPLAIN AND show me the screenshot how TO DO THESE!

Perform all of the following on your Linux instance.

  • Create a new user named ava.
  • Create a new user named charlie.
  • Create a new system user named automation.
  • Create a new group named marketing.
  • Create a new group named sales.
  • Add the user ava to the marketing group without removing the user from any other groups.
  • Add the user charlie to the sales group without removing the user from any other groups.
  • Change the hostname of the system to instance-UCID where UCID is your HCCC UCID. Note, HCCC UCIDs are the first part of your HCCC email address before the @ symbol.
  • Create a system-level cron job to execute the whoami command as the root user at 05:56 on the 15th and the 28th day of the month during the months September and October.
  • Create a system-level cron job to execute the date command as the root user at every Saturday at 12:30 only if that Saturday falls on the 1st to the 15th of any month.

For credit on this assignment, upload one or more screenshots showing all of the following.

  • The output of getent passwd ava charlie automation.
  • The output of getent group marketing sales.
  • The output of hostnamectl.
  • The output of cat /etc/crontab.

Homework Answers

Answer #1

1. To create a new user in Linux, type the following command in the Linux terminal -

sudo useradd ava

This command adds ava as a user.

2,3. Similarly add users - charlie and automation

sudo useradd charlie

sudo useradd automation

4. To create a new group in Linux use the following command - sudo groupadd marketing

This command adds a new group named marketing in Linux.

5. Similarly add the sales group - sudo groupadd sales

6. To add a user to a new group we use the adduser command. To add ava to the marketing group, the command is- sudo adduser ava marketing

7. To add charlie to the sales group, the command is - sudo adduser charlie sales

8. We can change the hostname by hostnamectl command. Hostname as you can see in the above screenshots is wildbeast, which is written on the command prompt. It is also your computer's name. Here it is asked to change the hostname to instance-UCID. Considering UCID is 1234(change it as required), the command to change the hostname is - sudo hostnamectl set-hostname instance-1234

9. To create system level cron jobs edit the /etc/crontab file and store your corn tasks there.

Cron syntax can be seen by opening the /etc/crontab file. To execute whoami command as given in the instructions, the corn syntax is-

56 5 15,28 9,10 * root /usr/bin/whoami

Explanation - 56(minutes), 5(hours), 15,28(dates of month), 9,10(month-September and October), *(day of week,here any day is fine so *), root(which user should run this command), /usr/bin/whoami (Command location)

10. To run the date cron job as specified, use the following syntax-

30 12 1-15 * 6 root /usr/bin/date

Explanation - 30(mins), 12(hours), 1-15(command should only run between 1-15 of the month), *(any month), 6(Saturday), root(user name which runs the command), /usr/bin/date (location of command).

You can edit the crontab file to write these commands by - sudo nano /etc/crontab and writing these 2 lines at the end of the file

OUTPUTS-

1. The output of getent passwd ava charlie automation.

2. The output of getent group marketing sales.

3. The output of hostnamectl. (Hiding my personal info with red blur here)

4. The output of cat /etc/crontab.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following commands do: dd, y3, p, :set cindent (1 pt) VIM exercises These exercises on the computer need to be repeated by each student in the pair. This is to ensure that both students understand how to get around in Linux!!! For this part of the lab, you will create a .vimrc file that will help you develop your C++ programs using VIM. First, we...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Question 1 of 15 Which of the following is not a recommended starting point to enter...
Question 1 of 15 Which of the following is not a recommended starting point to enter sales of products/services? A. Quick Create > Invoice B. Register > New transaction C. Quick Create > Sales Receipt D. Customer detail page > New transaction E. Transactions > Sales > New transaction Question 2 of 15 Which of the following statements accurately describes bank rules? A. Bank rules are imported from the Bank's website into the For Review tab in the Banking Center...
After reading the following article, how would you summarize it? What conclusions can be made about...
After reading the following article, how would you summarize it? What conclusions can be made about Amazon? Case 12: Amazon.com Inc.: Retailing Giant to High-Tech Player? (Internet Companies) Overview Founded by Jeff Bezos, online giant Amazon.com, Inc. (Amazon), was incorporated in the state of Washington in July 1994, and sold its first book in July 1995. In May 1997, Amazon (AMZN) completed its initial public offering and its common stock was listed on the NASDAQ Global Select Market. Amazon quickly...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From...
Sign In INNOVATION Deep Change: How Operational Innovation Can Transform Your Company by Michael Hammer From the April 2004 Issue Save Share 8.95 In 1991, Progressive Insurance, an automobile insurer based in Mayfield Village, Ohio, had approximately $1.3 billion in sales. By 2002, that figure had grown to $9.5 billion. What fashionable strategies did Progressive employ to achieve sevenfold growth in just over a decade? Was it positioned in a high-growth industry? Hardly. Auto insurance is a mature, 100-year-old industry...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Asia’s e-commerce landscape has been booming in recent years. The swift adoption of smartphones and greater...
Asia’s e-commerce landscape has been booming in recent years. The swift adoption of smartphones and greater access to the internet has allowed consumers in the region to be a major force in the global digital economy. The expansion looks set to continue at a rapid pace. According to a November 2018 report by Fitch Solutions, e-commerce sales in the region are forecast to increase by 14.2% this year, with an estimated average annual increase of 14% over the medium term...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT