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 is the conditional statement in shell scripting?

661


What language is bash?

491


How to find all the files modified in less than 3 days and save the record in a text file?

612


How to print pid of the current shell?

604


What is the difference between break and continue commands?

576






Explain about non-login shell files?

696


State the advantages of shell scripting?

595


How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }

1857


What is the way to do multilevel if-else's in shell scripting?

664


What are the advantages of shell script?

524


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

754


Explain about debugging?

606


What language is used in terminal?

558


Explain about sourcing commands?

640


What can you do with powershell?

611