Question: Please answer using linux. 1. Switch to a command-line terminal (tty3) by pressing Ctrl+Alt+F3 and log in to the ter- minal using the user name
Please answer using linux.
1. Switch to a command-line terminal (tty3) by pressing Ctrl+Alt+F3 and log in to the ter- minal using the user name of user1 and the password of LNXrocks!.
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 5-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 5-5? 5. At the command prompt, type umask 007 and press Enter. Next, type umask at the com- mand 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 5-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 5-6? 7. Type exit and press Enter to log out of your shell.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
