<?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 umask in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543170#M26907</link>
    <description>Our users have the setting, umask 770, in&lt;BR /&gt;a /usr/local/bin/custom.profile&lt;BR /&gt;They are directed to this file from their /home/username/.profile&lt;BR /&gt;&lt;BR /&gt;When they do umask at the unix prompt it returns, &lt;BR /&gt;&lt;BR /&gt;&amp;gt;umask&lt;BR /&gt;07&lt;BR /&gt;&lt;BR /&gt;That seems correct.  So, when the user creates a file the permissions should be rwxrwx---&lt;BR /&gt;&lt;BR /&gt;But, when the users create a file the permisssions are rw-rw----&lt;BR /&gt;&lt;BR /&gt;Why isn't umask working?&lt;BR /&gt;&lt;BR /&gt;I did a grep for umask in /etc/profile and /home/username/.profile and there is no mention of umask&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Jun 2001 02:44:48 GMT</pubDate>
    <dc:creator>David Peacock</dc:creator>
    <dc:date>2001-06-21T02:44:48Z</dc:date>
    <item>
      <title>umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543170#M26907</link>
      <description>Our users have the setting, umask 770, in&lt;BR /&gt;a /usr/local/bin/custom.profile&lt;BR /&gt;They are directed to this file from their /home/username/.profile&lt;BR /&gt;&lt;BR /&gt;When they do umask at the unix prompt it returns, &lt;BR /&gt;&lt;BR /&gt;&amp;gt;umask&lt;BR /&gt;07&lt;BR /&gt;&lt;BR /&gt;That seems correct.  So, when the user creates a file the permissions should be rwxrwx---&lt;BR /&gt;&lt;BR /&gt;But, when the users create a file the permisssions are rw-rw----&lt;BR /&gt;&lt;BR /&gt;Why isn't umask working?&lt;BR /&gt;&lt;BR /&gt;I did a grep for umask in /etc/profile and /home/username/.profile and there is no mention of umask&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jun 2001 02:44:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543170#M26907</guid>
      <dc:creator>David Peacock</dc:creator>
      <dc:date>2001-06-21T02:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543171#M26908</link>
      <description>With a umask of 07 (007) the permissions of -rw-rw---- is correct.  Remember that umask is the bits that will be SUBTRACTED from the permissions of a file.  Default permissions I think for a user created file a -rw-rw-rw- so 007 subtracts the rw permissions for world.&lt;BR /&gt;&lt;BR /&gt;A umask of 770 is not one that you would want.  That would make files that are created have permissions of -------rw- which wouldn't do your users much good.  &lt;BR /&gt;&lt;BR /&gt;I could see having a umask of 077 which would make a file the user created be -rw------- so that it would be readable JUST by the user.</description>
      <pubDate>Thu, 21 Jun 2001 02:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543171#M26908</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-06-21T02:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543172#M26909</link>
      <description>Hi,&lt;BR /&gt;ask your users to set the umask to 007.</description>
      <pubDate>Thu, 21 Jun 2001 06:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543172#M26909</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-06-21T06:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543173#M26910</link>
      <description>HPUX creates any file without x permission and directories with x permission. The umask only take away from the default values of the file creation. By setting the umask 007, rw is taken away for others. We can only take away the file creation attributes but i do not think there is a way to create file default with x permission.</description>
      <pubDate>Thu, 21 Jun 2001 06:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543173#M26910</guid>
      <dc:creator>R Madhavan</dc:creator>
      <dc:date>2001-06-21T06:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543174#M26911</link>
      <description>CORRECTION:&lt;BR /&gt;&lt;BR /&gt;The users have umask set at 007 in&lt;BR /&gt;/usr/local/bin/custom.profile</description>
      <pubDate>Thu, 21 Jun 2001 15:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543174#M26911</guid>
      <dc:creator>David Peacock</dc:creator>
      <dc:date>2001-06-21T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543175#M26912</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;If the users umask is set to 007, then the file that are created by the user will have permission of -rw-rw----.  As has been said, files are created with rw- permission for owner, group and world, no execute permissions, so umask is behaving normally by subtracting all permissions from world.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jun 2001 15:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/2543175#M26912</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-06-21T15:33:47Z</dc:date>
    </item>
  </channel>
</rss>

