<?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: umaks in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976710#M418959</link>
    <description>Hello All;&lt;BR /&gt;&lt;BR /&gt;Thanks all of you. i appreciate you help.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Indrajit Roy.&lt;BR /&gt;</description>
    <pubDate>Thu, 04 May 2006 07:25:54 GMT</pubDate>
    <dc:creator>Indrajit_1</dc:creator>
    <dc:date>2006-05-04T07:25:54Z</dc:date>
    <item>
      <title>umaks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976705#M418954</link>
      <description>Hi all;&lt;BR /&gt;i have a hp box where umask value is set to 027. when i create a file in my home directory, the default permission is set to rw-r--&lt;BR /&gt;but, it should be rwx-rx---- which means (777 - 027)&lt;BR /&gt;if i create a directory in my home directory, the default permission is rwx-rx----.&lt;BR /&gt;Is there any way we can set some parameter so that i have the same default permission for file too.&lt;BR /&gt;if for file it is ( 666 - 027 ) which rw-r-----, it should not be right format. Please advice.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Indrajit</description>
      <pubDate>Tue, 02 May 2006 13:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976705#M418954</guid>
      <dc:creator>Indrajit_1</dc:creator>
      <dc:date>2006-05-02T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: umaks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976706#M418955</link>
      <description>Files do NOT get created with the execute permission bit set by default.  There are actually very few files that need that bit set.  Only execuatable files (scripts, binary programs, etc) need the execute bit set.&lt;BR /&gt;&lt;BR /&gt;So, what you are seeing is absolutely correct.&lt;BR /&gt;&lt;BR /&gt;Unless you write a C program, you cannot control the default permissions.</description>
      <pubDate>Tue, 02 May 2006 13:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976706#M418955</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-05-02T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: umaks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976707#M418956</link>
      <description>Directories are different - have to be executable - else you won't be able to cd to them.&lt;BR /&gt;&lt;BR /&gt;umask is set in either /etc/profile and/or your own .profile&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 02 May 2006 13:38:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976707#M418956</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-05-02T13:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: umaks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976708#M418957</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This behavior is normal and cannot be changed for files and directories created by the shell.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 May 2006 13:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976708#M418957</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-05-02T13:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: umaks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976709#M418958</link>
      <description>There are two things at play when files are created in the shell and you only have control over one of them - umask. The first is the mode of the file and the second is umask. Umask "subtracts" from this mode to yield the actual mode of the file. (It's not really subtraction but you can kinda, sorta think of it that way; it's really a bitwise NAND). Umask can't put back what was not there in the first place. The mode of regular files created by the shell is 666 (rw-rw-rw); the mode of directories is 777 (rwxrwxrwx).&lt;BR /&gt;&lt;BR /&gt;In order to set the execute bit on a regular file in the shell, an explicit chmod is required after the file is created.&lt;BR /&gt;&lt;BR /&gt;This can be a one-step operation under C, Perl, etc. but not in the shell.&lt;BR /&gt;</description>
      <pubDate>Tue, 02 May 2006 17:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976709#M418958</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-05-02T17:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: umaks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976710#M418959</link>
      <description>Hello All;&lt;BR /&gt;&lt;BR /&gt;Thanks all of you. i appreciate you help.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Indrajit Roy.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2006 07:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umaks/m-p/4976710#M418959</guid>
      <dc:creator>Indrajit_1</dc:creator>
      <dc:date>2006-05-04T07:25:54Z</dc:date>
    </item>
  </channel>
</rss>

