summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2019-05-18 18:35:49 -0600
committermokha <mokha@cisco.com>2019-05-18 18:35:49 -0600
commit9b711d827dd20bcac2bc25a4682a8754f9954014 (patch)
tree26badb82e6dd385fd3d0239e21e646692b5d31f0 /README.md
parent3de80cfb8b9da4e584eeab1556f67c3e363eda40 (diff)
complete exercise
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index f945757..92bf31d 100644
--- a/README.md
+++ b/README.md
@@ -175,7 +175,16 @@ chmod u=rw,g=r,o= test1
-rw-r----- 1 mokha staff 0B 18 May 18:17 test1
```
-10. The user ‘sarwar’ sets access permissions to his home directory by using the command chmod 700 $HOME. If the file cp.new in his home directory has read permissions to 777, can anyone read this file? Why or why not? Explain your answer.
+10. The user ‘sarwar’ sets access permissions to his home directory by using the command chmod 700 $HOME.
+If the file cp.new in his home directory has read permissions to 777, can anyone read this file? Why or why not? Explain your answer.
+
+Yes. The final seven in the permissions means read, write, execute
+for all other users.
+
+| Read (4) | Write (2) | Execute (1) |
+| ------------- | ------------- |
+| x | x | x |
+
11. What is the effect of each command? Explain your answers.
a. chmod 776 ∼/lab5
b. chmod 751 ∼/lab?