Question

Unix/Linux 1 (a)What should my umask be so new directories default to "drwx—x—x"? (b)What will files...

Unix/Linux

1 (a)What should my umask be so new directories default to "drwx—x—x"?

(b)What will files default to with the umask from the previous question?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

umask is used for setting the permission of the file(( to be created) and directory ( to be created).

a) 066

to set the permission drwx--x--x we can use umask 066

066 represents rwx--x--x

0 is for owner which means rwx

6 is for group which means --x

6 is for other which means --x

b)  -rw-------

the files that will be created using umask 066 will have the default permission

-rw-------

all execute permission will be removed from the file.

please upvote if it helped. Feel free to ask any query.

Add a comment
Know the answer?
Add Answer to:
Unix/Linux 1 (a)What should my umask be so new directories default to "drwx—x—x"? (b)What will files...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Starting from the Linux default permission for file and directories, what umask would you use to...

    Starting from the Linux default permission for file and directories, what umask would you use to ensure that for all new files, the owner would have read and execute; members of the group would have read, write and execute; and others would have execute?

  • 1. the commands you used to create the directories and files in Linux and Windows; 2....

    1. the commands you used to create the directories and files in Linux and Windows; 2. the commands you used to determine default permissions in Linux and Windows; 3. the commands you used to change permissions on your files in Linux and Windows; 4. a paragraph about how directories and file permissions work and what was the same or different between Windows and Linux.

  • 1.Please answer the Questions: a. What are the rules for naming UNIX directories? b. What is...

    1.Please answer the Questions: a. What are the rules for naming UNIX directories? b. What is the absolute pathname of your home directory? c. Explain how to start File Manager.

  • Please answer the following question according to the Image. 1. What directories and type of files...

    Please answer the following question according to the Image. 1. What directories and type of files exist in systemprofile? 2. How can the various types of files content assist in your investigation of the M57-Jean case? Be specific on content in at least “Application Data”, Cookies, and one (1) additional, systemprofile subdirectories. Artifacts are stored on a system based on what commands users run and where they decide to store certain files. Users are often not aware of clues their...

  • Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume...

    Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume you are started at your home directory. Perform a command that displays the absolute path of your home directory (your current location). Create a new directory inside your home directory and name it “Assignment-3” Without moving into the directory you just made (staying in your home directory), create two new directories using one command inside of the Assignment-3 directory, and name them Test1 and...

  • QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....

    QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...

  • Unix/Linux The purpose of this lab is to practice the commands to manage and organize files...

    Unix/Linux The purpose of this lab is to practice the commands to manage and organize files and directories: How would one go about this? Thanks. Task 1: Preliminaries: 1) If you have not already done so, create a directory called bin under your HOME directory. 2) If you have not already made a copy (using ftp) of the file called famous.dat from the Assignment#1, do that now. 3) Make bin the active/working directory. Task 2: Perform all of the following...

  • Please answer the following questions because I am not understanding it Description Investigate UNIX/Linux Files Systems...

    Please answer the following questions because I am not understanding it Description Investigate UNIX/Linux Files Systems by answering the questions below Requirements  Save the recorded information in an ASCII file named “prog2.txt”. The file, “prog2.txt”, must be located in the directory: $HOME/itec400/homework  Make sure the permissions on “prog2.txt” are set to 705.  Solutions to problems below may require research on the web  Record the questions below and the answers in “prog2.txt”. 1. What is the purpose...

  • Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS...

    Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS that you set up from Question 1. Assume you are started at your home directory. a) Perform a command that displays the absolute path of your home directory (your current location). b) Create a new directory inside your home directory and name it “Assignment-Two” c) Without moving into the directory you just made (staying in your home directory), create three new directories using one...

  • Using Unix processes Submit a README file that lists the files you have submitted along with...

    Using Unix processes Submit a README file that lists the files you have submitted along with a one sentence explanation. Call it Prj1README. MakeCopy.c : Write a C program that makes a new copy of an existing file using system calls for file manipulation. The names of the two files and copy block sizes are to be specified as command line arguments. Open the source file in read only mode and destination file in read/write mode. ForkCopy.c : Write a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT