Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is "umask"?

Answers were Sorted based on User's Feedback



what is "umask"? ..

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

what is "umask"? ..

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

what is "umask"? ..

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

what is "umask"? ..

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

what is "umask"? ..

Answer / prakash

umask 700 file1

is

similar to


chmod 077 file1

Is This Answer Correct ?    8 Yes 3 No

what is "umask"? ..

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

Post New Answer

More Shell Script Interview Questions

What is .sh file in mac?

0 Answers  


How will I insert a line "abcdef" at every 100th line of a file?

2 Answers  


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


What is the significance of the shebang line in shell scripting?

0 Answers  


is this growing field and what is average package in this?

0 Answers  


What is the use of echo in shell script?

0 Answers  


If one dont know how to create a script then how he/she can use the QTP?

1 Answers  


How to declare functions in unix shell script?

4 Answers  


What is awk in shell script?

0 Answers  


write a scwipt that a) takes exactly one argument, a directory name. b) if the number of argument is more or less than one,print a usage message c) if the argument is not adirectory, print another message d) for the given directory, print the five biggest files and the five files that were most recently modified. e) save the output to a file called q2output.

2 Answers  


How to check if the previous command was run successfully?

0 Answers  


What is the equivalent of a file shortcut that we have a window on a linux system?

0 Answers  


Categories