<?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: Umask value problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556727#M887429</link>
    <description>HI,&lt;BR /&gt;by setting umask in your .profile file should set your umask. have you executed profile file&lt;BR /&gt;#. ./.profile</description>
    <pubDate>Wed, 25 Jul 2001 04:09:07 GMT</pubDate>
    <dc:creator>Ravi_8</dc:creator>
    <dc:date>2001-07-25T04:09:07Z</dc:date>
    <item>
      <title>Umask value problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556726#M887428</link>
      <description>hi,&lt;BR /&gt; I have a crazy problem. Most of the processes running in the server are creating files with the following permission -rw------. Even though in my /etc/profile i have the umask value for users oracle, root are set as 022 and for all other users 002. But even the files created by processes run as root have -rw------. Is there any solution for this?&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2001 03:24:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556726#M887428</guid>
      <dc:creator>ramesh_4</dc:creator>
      <dc:date>2001-07-25T03:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Umask value problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556727#M887429</link>
      <description>HI,&lt;BR /&gt;by setting umask in your .profile file should set your umask. have you executed profile file&lt;BR /&gt;#. ./.profile</description>
      <pubDate>Wed, 25 Jul 2001 04:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556727#M887429</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-07-25T04:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Umask value problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556728#M887430</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  Please Check up whether any other system wide umask is set or not? &lt;BR /&gt;&lt;BR /&gt;  Manually U can check by setting the umask value and creating files. Follow these&lt;BR /&gt;&lt;BR /&gt;#umask 777&lt;BR /&gt;#touch asd&lt;BR /&gt;#ll asd&lt;BR /&gt;  Now asd's permission should be ---------.&lt;BR /&gt;#umask 000&lt;BR /&gt;#touch asd1&lt;BR /&gt;#ll asd1&lt;BR /&gt;&lt;BR /&gt;  Now permission is rw-rw-rw. Normally umask will  not give executable permission. If U want to set executable permission use chmod command.&lt;BR /&gt;&lt;BR /&gt;#umask 002  will give rw-rw-r permission&lt;BR /&gt;&lt;BR /&gt;#umask 022 will give rw-r--r-- permission.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   For more information see man page of umask and chmod.&lt;BR /&gt;&lt;BR /&gt;Shahul</description>
      <pubDate>Wed, 25 Jul 2001 04:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556728#M887430</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2001-07-25T04:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Umask value problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556729#M887431</link>
      <description>The "umask" command in the user's profile (~/.profile ) will override the the setting in the /etc/profile .&lt;BR /&gt;&lt;BR /&gt;So you should check the ~/.profile and set the correct umask for that user .&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2001 04:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556729#M887431</guid>
      <dc:creator>Frank Li</dc:creator>
      <dc:date>2001-07-25T04:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Umask value problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556730#M887432</link>
      <description>Hi Ramesh:&lt;BR /&gt;&lt;BR /&gt;Time for a little lesson. First, eventhough umask is set in /etc/profile, it can still br set later by the user's .profile. You need to check there or better yet from the shell do a umask and see if the value is what you expected.&lt;BR /&gt;&lt;BR /&gt;Now let's suppose that your umask is set to 000. You would expect that all files created would have permission 777. But that is not the case because it also depends upon the creation mask.&lt;BR /&gt;&lt;BR /&gt;In this example I'll use a umask of 002 and a creation mask of 0666.&lt;BR /&gt;&lt;BR /&gt;At the system level, when a file is created, a call is made to creat("/tmp/myfile",0666)&lt;BR /&gt;Umask masks off the nonzero bits of the creation mask to actually create a file with permissions 0664 or rw-rw-r. In this case, if the umask had been set to 000 then the file would have been created with 666 permissions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I suspect that there is nothing wrong, it's just that the combination of creation_mask and umask are not what you expect.&lt;BR /&gt;&lt;BR /&gt;I hope I've been clear, Clay</description>
      <pubDate>Wed, 25 Jul 2001 04:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556730#M887432</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-25T04:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Umask value problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556731#M887433</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Attention the /etc/profile is a commun file for all user and the individual .profile file is overwritten what the /etc/profile is doing.&lt;BR /&gt;&lt;BR /&gt;So normally, the .profile file for each user is complemantary to the /etc/profile.&lt;BR /&gt;&lt;BR /&gt;You have to have a look to your .profile file and to set it to your desired value.&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Wed, 25 Jul 2001 11:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556731#M887433</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-07-25T11:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Umask value problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556732#M887434</link>
      <description>Ramesh,&lt;BR /&gt;&lt;BR /&gt;All of the other replies are correct.  However, you must also consider how you are logging in.  By default, /etc/profile and the user's .profile are NOT read during a CDE login.&lt;BR /&gt;&lt;BR /&gt;You probably want to set umask once in /etc/profile, then source /etc/profile during CDE logins.  That way, everyone gets the same umask, no matter how they login.&lt;BR /&gt;&lt;BR /&gt;To do that, you must modify /etc/profile to be CDE safe (fairly simple).  Then, put a link to /etc/profile in /etc/dt/config/Xsession.d&lt;BR /&gt;&lt;BR /&gt;--Joe</description>
      <pubDate>Thu, 26 Jul 2001 13:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-value-problem/m-p/2556732#M887434</guid>
      <dc:creator>Joe Colucci_1</dc:creator>
      <dc:date>2001-07-26T13:10:31Z</dc:date>
    </item>
  </channel>
</rss>

