what is "umask"?
Answers were Sorted based on User's Feedback
Answer / narendrasairam
If any file possess all the read,write and execute
permissions means, its said to have permission set "777".
umask is a command which displays or sets the file mode
creation mask.
Means, any created file is masked with the permission set
given by umask command.
For instance, if the umask is "033" the default file
permissions will be 777-033 i.e., "744" just as file
permissions in above Balaji's answer.
| Is This Answer Correct ? | 19 Yes | 4 No |
Answer / balaji t
umask is used to set the default directory/file access
restriction during it creation.
For example: In '.profile' if you use 'umask 033' then if
you create any file/directory that will be in 'rwx-r--r--'
| Is This Answer Correct ? | 22 Yes | 9 No |
Answer / neha c
UMASK:- user file creation mask. This tells which
permissions are hidden from the owner, group and other. It
doesnt tell which permissions are granted rather tells which
are denied.
Default file permissions=666
Default directory permissions=777
Actual file permissions= (Default file permissions) - (Value
of Umask)
If value of UMASK = 232 then actual file permissions=
666-232= 434
Value of UMASK can be changed by the following command:-
UMASK <new_value_to_be_given>
UMASK 253
| Is This Answer Correct ? | 14 Yes | 4 No |
Answer / rakesh arora
umask is to set the default directory and file access
restriction set during it creation.
For Example if Umask is 033( means 000011011 ) then
directory permission will be its complement
so default dir permission is 111100100 ( means 744)
now,AND dir permission with 110110110 (666) so it comes to
and file permission is 110100100 (644)
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / shajahan
umask stands for user file creation mask, the term mask
implying which permissions to mask or hide. The umask value
tells Unix which of the three permissions are to be denied
rather than granted. The current value of umask can be
easily determined by Command: $umask
| Is This Answer Correct ? | 1 Yes | 3 No |
what is this line in the shell script do ?#!/bin/ksh
What is @echo off?
Write a shell program to test whether a given number is even or odd?
on “sed” command EmpData(Sample Database) 1122|j.b. saxena |g.m. |account |12/12/52|6000 2233|n.k. gupta |d.g.m |sales |31/12/40|9000 4545|anil agarwal |director |account |06/07/47|7500 5656|lalit choudhury |executive|marketing|07/09/50|5000 1265|chanchal singhvi|g.m. |admin |12/09/63|6000 0110|shyam saksena |chairman |marketing|12/12/43|8000 5566|jai sharma |director |account |23/12/89|7000 7733|jayant |d.g.m |sales |29/02/70|6000 1. From the above database substitute the delimiter of first 3 lines with “ : “ 2. From the above database substitute the delimiter with “ : ” 3. Insert the string “ XYZ Employees” in the first line. 4. Store the lines pertaining to the directors, d.g.m and g.m into three separate files. 5. Using address store first 4 lines into a file Empupdate. 6. Find the pattern “account” in the database and replaces that with “accounts”. 7. Select those lines which do not have a pattern “g.m”. 8. Insert a blank line after every line in the database.
Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"
What is computer cli?
What is Path variable?What is its use?
Explain about return code?
What is a scripting language simple definition?
What is the difference between a 'thread' and a 'process'?
How many prompts are available in a UNIX system?
Which scripting language is best for automation?