Question
OBJECTIVE: Set default permissions. DESCRIPTION: In this hands - on project, you view and manipulate the default file and directory permissions using the umask variable.
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started