Answered step by step
Verified Expert Solution
Link Copied!

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

  1. 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?
  2. 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?
  3. 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.
    1. a. cd dir1
    2. b. ls
    3. c. rm dir1/mypasswd
    4. d. cp /etc/passwd dire

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

a. How will the leader be selected?

Answered: 1 week ago