Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Give a command line for setting the default access mode so that you have read, write, and execute privileges, your group has read and execute
- Give a command line for setting the default access mode so that you have read, write, and execute privileges, your group has read and execute permissions, and all others have no permission for a newly created executable file or directory. How would you test it to be sure that it works correctly?
- What umask command should be executed to set the permissions bit mask to 037? With this mask, what default access privileges are associated with any new file that you create on the system? Why? Where would you put this command so that every time you log on to the system this mask is effective?
- Create a file dir1 in your home directory and use cp /etc/passwd dir1/mypasswd command to copy the /etc/passwd file in it. Use the chmod command to have only the search permission on for it and execute the following commands. What is the results of executing these commands? Do the results make sense to you? Explain.
- a. cd dir1
- b. ls
- c. rm dir1/mypasswd
- d. cp /etc/passwd dire
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