Reference no: EM133360651
Questions:
1. While inside the extracted homework02 folder under your home directory, create a new file called animals.txt using vi editor and enter 10 animals in it.
2. Run a command to display the permission of the animals.txt file.
3. Briefly explain the meaning of those permission displayed.
4. Who is the owner of the file.
5. Using the letter code, change the permissions of the file so that the owner has read, write permissions, group has only read permission, and others have only execute permissions.
6. Using the octal codes, change the permissions of the file so that the owner has read, write, execute permissions, group has read permission, and others have no permissions at all.
7. Change the owner of the file to the root user.
8. Create a new folder called permissions and create two text files and subfolder within it.
9. Display the permission of the created folder.
10. While in the homework02 folder, display the permission of the two text files and subfolder within the permission folder.
11. In a single command, change the permissions of all the files and subfolders in the permissions folder so that group and others only have read permission.
12. Run a command to show the default creation permissions for all files and directories.
13. What is the output (value) after running the above command?
14. Based on the value in 11 above, explain how to derive the default creation permissions for (i) files, and (2) directories.
15. Create a new folder and a new file. Show the permissions for the new file and folder, verify your answer in 12 above.