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 4: Minimum Permissions for common file operations
In the table below, give in symbolic rwx form the minimum permissions an ordinary (non-root)
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 1-7 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 data(file); some require both.
{cslinux1: } cp srcdir/srcfile targetdir/
{cslinux1: m srcdir/srcfile targetdir
{cslinux1: } ln srcdir/srcfile targetdir
{cslinux1: } rm srcdir/srcfile
{csinux1: cat srcdir/srctile
{cslinux1: date dir/oldfile (modify an existing file)
{cs1inux1: }ate dir/newfile (create a new file in an existing directory)
For commands 6 and 7 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 6 and 7 above.
[Capture transcript of mobaterm or putty here]
[REPLY in WORKSEET
[END of REPLY in WORKSEET]
 Exercise 4: Minimum Permissions for common file operations In the table

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!