diff options
| author | mo <mo.khan@gmail.com> | 2019-05-22 21:23:05 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-22 21:23:05 -0600 |
| commit | 7e9654bd0f297f6c3727b30100d4adafd91dbb7c (patch) | |
| tree | 3eb3b0b1ae557344cc17bfc3e33af83f19b80728 /README.md | |
| parent | e00e3e07b32fad8402d0b80842efe332e3d03a0d (diff) | |
more formatting
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -155,14 +155,13 @@ E.g モ ls -alh README.md -rw-r--r-- 1 mokha staff 7.8K 18 May 16:20 README.md ``` -The `-` indicates a file. -The `rw-` indicates read and write permissions for the owner of the file. -The following `r--` indicate read permissions for members of the group. -THe following `r--` indicate read permissions for everyone else. - -8. -How many user groups exist on your system? -How did you get your answer? + +* The `-` indicates a file. +* The `rw-` indicates read and write permissions for the owner of the file. +* The following `r--` indicate read permissions for members of the group. +* The following `r--` indicate read permissions for everyone else. + +8. How many user groups exist on your system? How did you get your answer? What groups are you a member of and what is your default group? How many groups is root a member of, on your system? How did you obtain your answer? @@ -183,7 +182,7 @@ wheel daemon kmem sys tty operator procview procmod everyone staff certusers loc See `exercises/chapter-8.8`. -9. Create a file test1 in your present working directory and set its access privileges to read and write for yourself, +9. Create a file `test1` in your present working directory and set its access privileges to read and write for yourself, read for the users in your group, and none to everyone else. What command did you use to set privileges? Give another command that would accomplish the same thing. @@ -199,8 +198,8 @@ chmod u=rw,g=r,o= test1 See `exercises/chapter-8.9`. -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. |
