<?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 command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-command/m-p/2618404#M925294</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Can anyone explain the exact reasons why the following umask setting '002' expectedly applies a directory permission default of its invers (755) bu applies something like a 664 to all its containing files. Is there a specific reason for this? and does anyone know how I am able to force the file permissions to adhere to a 755 permission setting as well?&lt;BR /&gt;&lt;BR /&gt;thanks in advance!&lt;BR /&gt;&lt;BR /&gt;John</description>
    <pubDate>Wed, 21 Nov 2001 16:37:10 GMT</pubDate>
    <dc:creator>u856100</dc:creator>
    <dc:date>2001-11-21T16:37:10Z</dc:date>
    <item>
      <title>umask command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-command/m-p/2618404#M925294</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Can anyone explain the exact reasons why the following umask setting '002' expectedly applies a directory permission default of its invers (755) bu applies something like a 664 to all its containing files. Is there a specific reason for this? and does anyone know how I am able to force the file permissions to adhere to a 755 permission setting as well?&lt;BR /&gt;&lt;BR /&gt;thanks in advance!&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 21 Nov 2001 16:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-command/m-p/2618404#M925294</guid>
      <dc:creator>u856100</dc:creator>
      <dc:date>2001-11-21T16:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: umask command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-command/m-p/2618405#M925295</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I hope you meant a umask setting of 022 or your examples don't work.&lt;BR /&gt;&lt;BR /&gt;Directories are created with a default mode of 777 and when xor'ed with a umask of 022 give 755 permissions.&lt;BR /&gt;&lt;BR /&gt;Regular files are created with a default mode of 666 and when xor'ed with a umask of 022 five 644 permissions.&lt;BR /&gt;&lt;BR /&gt;In order to create regular files with permissions of 755 you must using a creation mode of 0777 which would xor with 0022 umask to yield 0755. This is easy to do if creating the file in C but in the shell you would need a chmod after the file is created.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Wed, 21 Nov 2001 16:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-command/m-p/2618405#M925295</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-11-21T16:46:58Z</dc:date>
    </item>
  </channel>
</rss>

