<?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: Is that possible to set &amp;quot;file creation mode&amp;quot; ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404140#M201446</link>
    <description>Based upon user setting to umask, file creation mode will be changed.&lt;BR /&gt;&lt;BR /&gt;Execute as,&lt;BR /&gt;&lt;BR /&gt; umask&lt;BR /&gt; ...&lt;BR /&gt;&lt;BR /&gt; It will give user file-creation mas there.&lt;BR /&gt;&lt;BR /&gt; Try to change that as,&lt;BR /&gt; &lt;BR /&gt; umask 022&lt;BR /&gt;  &lt;BR /&gt; touch testfile&lt;BR /&gt; ls -l testfile&lt;BR /&gt;  you can note that permission will be changed to rw-rw-r--&lt;BR /&gt;&lt;BR /&gt; If you want to keep this always from login then, go to your login profile and put umask  002&lt;BR /&gt;&lt;BR /&gt; so that file creation will be changed to your requirement.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Oct 2004 09:17:42 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2004-10-20T09:17:42Z</dc:date>
    <item>
      <title>Is that possible to set "file creation mode" ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404136#M201442</link>
      <description>Is that possible to control the "file creation mode" ? &lt;BR /&gt;Now we are using an application called egate ( Seebeyond product ), it generates the some files with rw-rw---, how can I make it to create files with rw-rw-r-- ( read only for others ). As i know i can't do nothing with "umask" to change the permission.&lt;BR /&gt;Thanks !</description>
      <pubDate>Wed, 20 Oct 2004 09:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404136#M201442</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2004-10-20T09:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is that possible to set "file creation mode" ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404137#M201443</link>
      <description>You can set umask for that. But that can always be overidden by a knowledgible user. Also is your application specifying umask before creating a file?? If that is the case, setting umask willn ot help.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 20 Oct 2004 09:04:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404137#M201443</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-10-20T09:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is that possible to set "file creation mode" ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404138#M201444</link>
      <description>Not unless you have access to the source code.&lt;BR /&gt;&lt;BR /&gt;When a file is created using the creat() system call or with the open() system call if O_CREAT is asserted, the actual mode of the file is the mode as supplied to the system call with the current umask value "subtracted" from it. It's not really subtraction but the idea is the same. If you have umask set to 000 then whatever mode results when the application creats a file is the mode that the programmer intended.&lt;BR /&gt;&lt;BR /&gt;There is no way to override this behavior nor should there be. If there were, all kinds of security holes would be created.&lt;BR /&gt;&lt;BR /&gt;What you can do, is have a cron process that looks for new regular files on a certain directory tree, owned by a certain user or group and does the chmod after the fact.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2004 09:10:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404138#M201444</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-10-20T09:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is that possible to set "file creation mode" ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404139#M201445</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;files are per default created with rw-rw-rw- permissions (directories with rwxrwxrwx).&lt;BR /&gt;You can only *lower* the permission by using umask.&lt;BR /&gt;"umask 002" should result in rw-rw-r-- for files.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Wed, 20 Oct 2004 09:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404139#M201445</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2004-10-20T09:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is that possible to set "file creation mode" ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404140#M201446</link>
      <description>Based upon user setting to umask, file creation mode will be changed.&lt;BR /&gt;&lt;BR /&gt;Execute as,&lt;BR /&gt;&lt;BR /&gt; umask&lt;BR /&gt; ...&lt;BR /&gt;&lt;BR /&gt; It will give user file-creation mas there.&lt;BR /&gt;&lt;BR /&gt; Try to change that as,&lt;BR /&gt; &lt;BR /&gt; umask 022&lt;BR /&gt;  &lt;BR /&gt; touch testfile&lt;BR /&gt; ls -l testfile&lt;BR /&gt;  you can note that permission will be changed to rw-rw-r--&lt;BR /&gt;&lt;BR /&gt; If you want to keep this always from login then, go to your login profile and put umask  002&lt;BR /&gt;&lt;BR /&gt; so that file creation will be changed to your requirement.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2004 09:17:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-that-possible-to-set-quot-file-creation-mode-quot/m-p/3404140#M201446</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-20T09:17:42Z</dc:date>
    </item>
  </channel>
</rss>

