Problem

In this hands-on project, you view and manipulate the default file and directory permiss...

In this hands-on project, you view and manipulate the default file and directory permissions using the umask variable.

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 ls -l and press Enter. What files do you see?

3. At the command prompt, type umask and press Enter. What is the default umask variable?

4. At the command prompt, type touch utest1 and press Enter. Next, type ls –l at the command prompt and press Enter. What are the permissions on the utest1 file? Do these agree with the calculation in Figure 4-5? Create a new directory by typing the command mkdir udir1 at the command prompt and pressing Enter. Next, type ls –l at the command prompt and press Enter. What are the permissions on the udir1 directory? Do these agree with the calculation in Figure 4-5?

5. At the command prompt, type umask 007 and press Enter. Next, type umask at the command prompt and press Enter to verify that your umask variable has been changed to 007.

6. At the command prompt, type touch utest2 and press Enter. Next, type ls –l at the command prompt and press Enter. What are the permissions on the utest2 file? Do these agree with the calculation in Figure 4-6? Create a new directory by typing the command mkdir udir2 at the command prompt and pressing Enter. Next, type ls –l at the command prompt and press Enter. What are the permissions on the udir2 directory? Do these agree with the calculation in Figure 4-6?

7. 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