Question: Exercise 4 : Minimum Permissions for common file operations In the table below, give in symbolic r w x form the minimum permissions an ordinary
Exercise : Minimum Permissions for common file operations
In the table below, give in symbolic form the minimum permissions an ordinary nonroot
user requires to successfully complete the commands listed in the left column below. "Minimum"
means the least amount of rwx permissions needed.
How many of rwx can you take away and still perform the given command successfully? Test
your guess to make sure you are correct, using commands above. Do not forget to replace
"srcdir" and "targetdir" with example directories in your home directory, "srcfile" and "oldfile" with
an existing file in your home directory, and "newfile" with a name of a new file to create
Recall that some commands require permissions on the directory; some require permissions on
the datafile; some require both.
cslinux: cp srcdirsrcfile targetdir
cslinux: m srcdirsrcfile targetdir
cslinux: ln srcdirsrcfile targetdir
cslinux: rm srcdirsrcfile
csinux: cat srcdirsrctile
cslinux: date diroldfile modify an existing file
csinux: ate dirnewfile create a new file in an existing directory
For commands and above, the directory is not a "source" directory since nothing is being
read from it and the file is not a "source" file since it is being written to it is an output target
Use the first two columns in the table below to record permissions for the directory and the target
file for and above.
Capture transcript of mobaterm or putty here
REPLY in WORKSEET
END of REPLY in WORKSEET
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
