Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
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. You will also set security permissions for users and groups within the tree.
Here are the deliverables:
- 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
- make a file, named Emp.dat, in the headquarters directory with the data below. The fields are Employee ID, Employee First Name, and Salary
- 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.
- 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.
- Run the script.
Expert Solution
For detailed step-by-step solution, place custom order now.
Need this Answer?
This solution is not in the archive yet. Hire an expert to solve it for you.
Get a Quote





