diff options
| author | mokha <mokha@cisco.com> | 2019-05-18 18:35:49 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-05-18 18:35:49 -0600 |
| commit | 9b711d827dd20bcac2bc25a4682a8754f9954014 (patch) | |
| tree | 26badb82e6dd385fd3d0239e21e646692b5d31f0 /README.md | |
| parent | 3de80cfb8b9da4e584eeab1556f67c3e363eda40 (diff) | |
complete exercise
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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? |
