<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: setting umask value in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812683#M268569</link>
    <description>Thanks.  Just umask setting does not help the developr really.  He has to use the chmod on the file.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
    <pubDate>Mon, 26 Jun 2006 15:39:47 GMT</pubDate>
    <dc:creator>sheevm</dc:creator>
    <dc:date>2006-06-26T15:39:47Z</dc:date>
    <item>
      <title>setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812676#M268562</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;One of the app developer is trying to aet umask value in his script to uamsk 077.  But after running his profile, umask is still showing 022 default value.&lt;BR /&gt;&lt;BR /&gt;The purpose is, the files created by this user must have umask of 077 (just for this user)&lt;BR /&gt;&lt;BR /&gt;Can someone help?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rajim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2006 14:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812676#M268562</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2006-06-26T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812677#M268563</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The developer could just type:&lt;BR /&gt;umask 077&lt;BR /&gt;&lt;BR /&gt;At the command prompt.&lt;BR /&gt;&lt;BR /&gt;Developers being developers, you'll need to modify his/her profile.&lt;BR /&gt;&lt;BR /&gt;Start with /etc/profile and then .profile and try to make this statement the last thing that happens when the profile gets sourced.&lt;BR /&gt;&lt;BR /&gt;umask 077&lt;BR /&gt;&lt;BR /&gt;Have a great day.&lt;BR /&gt;&lt;BR /&gt;And ask yourself, what have you done to enable a helpless developer today.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 26 Jun 2006 14:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812677#M268563</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-26T14:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812678#M268564</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Given:&lt;BR /&gt;&lt;BR /&gt;# cat ./mymask&lt;BR /&gt;umask 077&lt;BR /&gt;&lt;BR /&gt;...if you do:&lt;BR /&gt;&lt;BR /&gt;# ./mymask&lt;BR /&gt;&lt;BR /&gt;...then the umask of your current environment will remain *unchanged*.&lt;BR /&gt;&lt;BR /&gt;If you source (read) the script as:&lt;BR /&gt;&lt;BR /&gt;# . ./mymask&lt;BR /&gt;&lt;BR /&gt;...then the changed umask will be propogated and changed in the current environment.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 26 Jun 2006 14:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812678#M268564</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-26T14:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812679#M268565</link>
      <description>If your app developer doesn't understand the concept of child processes not being able to alter a parent processes environment then I'm not sure that this app developer should be developing apps yet. He is indeed setting umask but as soon as that process terminates and control is returned to the parent process, umask is exactly back to where it was. &lt;BR /&gt;&lt;BR /&gt;There are really two options:&lt;BR /&gt;1) explicitly set umask in .profile&lt;BR /&gt;2) His script should be sourced in .profile by using the dot "." operator; sourcing a file makes the file part of the foreground process so that a child process is not involved. This sourced file must not contain an exit or return statement as that would have the effect of exiting the foreground process (the shell in this case).</description>
      <pubDate>Mon, 26 Jun 2006 14:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812679#M268565</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-06-26T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812680#M268566</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I tested this.  The directory permission are O.K with the new umask 077.  But if I touch file in that directory it does not have the same umask&lt;BR /&gt;&lt;BR /&gt;Raji</description>
      <pubDate>Mon, 26 Jun 2006 15:10:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812680#M268566</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2006-06-26T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812681#M268567</link>
      <description>Okay, let's do this:&lt;BR /&gt;&lt;BR /&gt;umask 077&lt;BR /&gt;mkdir mynewdir&lt;BR /&gt;cd mynewdir&lt;BR /&gt;touch mynewfile&lt;BR /&gt;ls -l&lt;BR /&gt;&lt;BR /&gt;I suspect that you will find that '.' the local directory has mode 700 (drwx------) and that mynewfile has mode 600 (-rw------) which is entirely consistant with a umask of 077.</description>
      <pubDate>Mon, 26 Jun 2006 15:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812681#M268567</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-06-26T15:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812682#M268568</link>
      <description>I suspect what is confusing you is that with a umask of 077, directories are created with 700 permissions but regular files are created within the shell with 600 permissions. There are two things at play here: 1) the default creation mode of the file, and 2) the umask value. Umask "subtracts" from the creation mode to yield the effective mode. The operation isn't really subtraction; it's a NAND but you can kinda, sorta think of it as subtraction. The default creation mask for directories is 777 and the default creation mask for regular files is 666 and therefore the observed results make perfect sense.&lt;BR /&gt;In order to set the execute bit from within the shell, an explicit chmod is required after the file is created. In other languages (e.g. C,C++, or Perl) a one-step file creation with execute bit set is possible. &lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2006 15:29:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812682#M268568</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-06-26T15:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: setting umask value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812683#M268569</link>
      <description>Thanks.  Just umask setting does not help the developr really.  He has to use the chmod on the file.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Mon, 26 Jun 2006 15:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-umask-value/m-p/3812683#M268569</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2006-06-26T15:39:47Z</dc:date>
    </item>
  </channel>
</rss>

