what is "umask"?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are "c" and "b" permission fields of a file?

558


What is meant by dos operating system?

570


How to calculate the number of passed arguments?

551


What is shell application?

567


What does path stand for?

634






What is wc in shell script?

557


What is the conditional statement in shell scripting?

657


How will you connect to a database server from linux?

553


how will you find the total disk space used by a specific user?

576


What does $$ mean in shell script?

575


how to get part of string variable with echo command only?

587


How do I run a .sh file on mac?

669


What is scripting autism?

700


What is the purpose of scripting?

573


How to print pid of the current shell?

598