Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Now, it is time to automate the building of the directory tree, that you did in Project 3, for the company

Now, it is time to automate the building of the directory tree, that you did in Project 3, for the company

Computer Science

Now, it is time to automate the building of the directory tree, that you did in Project 3, for the company. You will also set security permissions for users and groups within the tree.

Here are the deliverables:

  1. Initial setup:
    • make a file, named Emp.dat, in the headquarters directory with the data below. The fields are Employee ID, Employee First Name, and Salary
      • 1001:Pat:50000
      • 1001:Joe:51000
      • 1005:Mary:65000
      • 1006:Bob:59000
  2. Scripting - make a bash shell script that includes these items:
    • Comments to include your name, program names, script creation date, and general comments of the purpose of the script.
    • Change to your home directory.
    • Identify the shell that will be used,
    • Use the correct command(s) to create the directories.
    • Use the correct command(s) to create the files.
    • Now, before you create each directory and file, test for their existence. If they exist, display a message that they do indeed exist but do not create them. If they do not exist, create them, and display a message they have been created.
    • Display the contents of Emp.dat, pipe that output to the grep command searching for "Mary" and then redirect that output to a file named AllAboutMary.dat.
    • Display the contents of Emp.dat showing only the Employee First Name and Salary.
  3. Security
    • For the directories, the permissions should be read, write, execute for the owner, read and execute for the group, and nothing for all others.
    • For the files, the permissions should be read and write for the owner and group and read only for all others.
    • Display a message indicating the permissions have been set.
    • Display the entire tree from your home directory, showing all permissions.
  4. Run the script.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions