OBJECTIVE: Set default permissions. DESCRIPTION: In this hands - on project, you view and manipulate the default
Question:
OBJECTIVE: Set default permissions.
DESCRIPTION: In this handson project, you view and manipulate the default file and directory permissions using the umask variable.
Switch to a commandline terminal tty by pressing CtrlAltF and log in to the terminal using the user name of user and the password of LINUXrocks!.
At the command prompt, type umask and press Enter. What is the default umask variable?
At the command prompt, type touch utest and press Enter. Next, type ls l at the command prompt and press Enter. What are the permissions on the utest file? Do these agree with the calculation in Figure Create a new directory by typing the command mkdir udir at the command prompt and pressing Enter. Next, type ls l at the command prompt and press Enter. What are the permissions on the udir directory? Do these agree with the calculation in Figure
At the command prompt, type umask and press Enter. Next, type umask at the command prompt and press Enter to verify that your umask variable has been changed to
At the command prompt, type touch utest and press Enter. Next, type ls l at the command prompt and press Enter. What are the permissions on the utest file? Do these agree with the calculation in Figure Create a new directory by typing the command mkdir udir at the command prompt and pressing Enter. Next, type ls l at the command prompt and press Enter. What are the permissions on the udir directory? Do these agree with the calculation in Figure
Type exit and press Enter to log out of your shell.
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last