Problem

In this hands-on project, you view and set special permissions on files and directories....

In this hands-on project, you view and set special permissions on files and directories.

1. Switch to a command-line terminal (tty3) by pressing Ctrl+Alt+F3 and log in to the terminal using the user name of user1 and the password of secret.

2. At the command prompt, type touch specialfile and press Enter. Next, type ls –l at the command prompt and press Enter to verify that specialfile was created successfully. Who is the owner and who is the group owner of specialfile?

3. At the command prompt, type chmod 4777 specialfile and press Enter. Next, type ls -l at the command prompt and press Enter. Which special permission is set on this file? If this file were executed by another user, who would that user be during execution?

4. At the command prompt, type chmod 6777 specialfile and press Enter. Next, type ls -l at the command prompt and press Enter. Which special permissions are set on this file? If this file were executed by another user, who would that user be during execution and which group would that user be a member of?

5. At the command prompt, type chmod 6444 specialfile and press Enter. Next, type ls –l at the command prompt and press Enter. Can you tell if execute is not given underneath the special permission listings? Would the special permissions retain their meaning in this case?

6. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

7. At the command prompt, type mkdir /public and press Enter. Next, type chmod 1777 /public at the command prompt and press Enter. Which special permission is set on this directory? Who can add or remove files to and from this directory?

8. At the command prompt, type touch /public/rootfile and press Enter. 9. Type exit and press Enter to log out of your shell.

10. Switch back to your previous command-line terminal (tty3) by pressing Ctrl+Alt+F3. Note that you are logged in as the user1 user on this terminal.

11. At the command prompt, type touch /public/user1file and press Enter. Next, type ls -l /public at the command prompt and press Enter. What files exist in this directory, and who are the owners?

12. At the command prompt, type rm /public/user1file and press Enter. Were you prompted to confirm the deletion of the file?

13. At the command prompt, type rm /public/rootfile and press Enter. What message did you receive? Why? Press y. Note the error message that you receive.

14. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search