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 language is used in terminal?
write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it, the data accepted from user till STOP, displays the no. of characters stored in the file.Program stops if directory name is null
How to take input values from the user?
How do you create a shortcut in linux?
What language is shell scripting?
Why are there shells on the beach?
When we login into our account which files are executed?
Is it possible to substitute "ls" command in the place of "echo" command?
How can the contents of a file inside jar be read without extracting in a shell script?
How do I run a shell script in powershell?
What is shell prompt?
What is shell chemistry?