Question
1 Instructions This assignment deals with Unix file protections. Set the protections on the directories and files that you created for the earlier Files and
1 Instructions
This assignment deals with Unix file protections.
Set the protections on the directories and files that you created for the earlier Files and Directories assignment as follows:
~/UnixCourse
You should be able to add and remove files from the directory, access files within the directory whose names you already know, and look through the directory via ls to see what files are in there. No one else should be able to do any of these things.
(This is a good setting for directories where you will keep assignments for various courses. After this assignment, your ~/UnixCourse directory should always be set this way.)
~/UnixCourse/fileAsst
You should be able to add and remove files from the directory, access files within the directory whose names you already know, and look through the directory via ls to see what files are in there. People in your group should be able to do ls and to access files, but not add/remove files from the directory. People outside your group should be able to do none of these things.
(Actually, no one but you will really have access to this directory because its inside ~/UnixCourse and, if youve done the prior step correctly, they cant get inside there to get to fileAsst. But, for the sake of this exercise, well ignore that fact.)
~/UnixCourse/fileAsst/Planes
You should be able to add and remove files from the directory, access files within the directory whose names you already know, and look through the directory via ls. Everyone else should be able to use ls but have no other privileges.
~/UnixCourse/fileAsst/Ships
You should be able to add and remove files from the directory, access files within the directory whose names you already know, and look through the directory via ls. Everyone else should be able to access files in the directory for which they already know the names, but have no other privileges.
~/UnixCourse/fileAsst/Planes/spitfire.txt
Everyone should be able to read and write to this file.
~/UnixCourse/fileAsst/Ships/frigate.txt
We will pretend, for the sake of this assignment, that this file contains an executable program. You should be able to read and write to this file. You and members of your group should be able to execute it. People other than you have no other privileges.
When you have set all these file permissions, give the command:
~cs252/bin/fileprotAsst
to check your work.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started