First, it's not "unmask", it's umask (no N). You can read more about the Perl version here.

As to your direct question, the umask is set on a per-process basis. There's no "system umask", only what is set by your administrator in user startup files. If you set the umask, it will affect all files (and hence directories) created after that point by that process. In systems I know, the umask is inherited by child processes, but I'm not sure if that's true of all Unix-oid systems or not. It's certainly not true of Win32 systems, and I can't really speak to how it's implemented there.

HTH


In reply to Re: Does changing 'unmask' change the system's default value? by VSarkiss
in thread Does changing 'umask' change the system's default value? by newbie00

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.