<?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: default umask in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616745#M885220</link>
    <description>Each process that runs on a system has its own file mode creation mask, which is usually inherited from its parent processes environment. Anyone who logs in via the network thro inetd gets the umask defined in /sbin/init.d/inetd. Any other services started on the box get the umask defined in /sbin/rc, as for root logins at the console? Well I'm not sure where init (which is the parent process of the getty) gets its mask from (if anywhere) - Perhaps its hard coded into the kernel...</description>
    <pubDate>Mon, 19 Nov 2001 17:02:49 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2001-11-19T17:02:49Z</dc:date>
    <item>
      <title>default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616735#M885210</link>
      <description>Where is the default umask set on HP-UX?</description>
      <pubDate>Mon, 19 Nov 2001 15:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616735#M885210</guid>
      <dc:creator>Anthony O'Connor</dc:creator>
      <dc:date>2001-11-19T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616736#M885211</link>
      <description>Hi Anthony:&lt;BR /&gt;&lt;BR /&gt;It's not, other than "000".  You should establish the default you want in /etc/profile and/or in $HOME/.profile.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 19 Nov 2001 15:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616736#M885211</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-19T15:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616737#M885212</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Why do you need that?  Typing&lt;BR /&gt;&lt;BR /&gt;umask&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;umask -S&lt;BR /&gt;&lt;BR /&gt;displays the mask for you.  I don't know why you need to know where it is stored in HP/UX...  any more information please?&lt;BR /&gt;&lt;BR /&gt;Vince</description>
      <pubDate>Mon, 19 Nov 2001 15:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616737#M885212</guid>
      <dc:creator>Vincent Farrugia</dc:creator>
      <dc:date>2001-11-19T15:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616738#M885213</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a link on umask. I don't think there is a standard  umash on hp-ux for all applications, login etc. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90680/B2355-90680_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90680/00/03/362-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90680/00/03/362-toc.html&amp;amp;searchterms=umask&amp;amp;queryid=20011119-073012" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90680/B2355-90680_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90680/00/03/362-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90680/00/03/362-toc.html&amp;amp;searchterms=umask&amp;amp;queryid=20011119-073012&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2001 15:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616738#M885213</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-11-19T15:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616739#M885214</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;umask is set in /etc/profile. That umask can then be overridden by setting it again in the user's .profile. Finally, you can override that at the command line using the umask command (though it will only be changed for that process). &lt;BR /&gt;&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2001 15:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616739#M885214</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-11-19T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616740#M885215</link>
      <description>&lt;BR /&gt;It's been a long time since i did a fresh O/S install, but iirr, the default is nothing i.e 000.&lt;BR /&gt;&lt;BR /&gt;You would need to set it system wide in /etc/profile- &amp;gt; umask xyz&lt;BR /&gt;&lt;BR /&gt;and to override it for individual users, you set it in their .profile file.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Mon, 19 Nov 2001 15:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616740#M885215</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-11-19T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616741#M885216</link>
      <description>Thanks for the quick replies...&lt;BR /&gt;&lt;BR /&gt;I know I can set it in profiles or on command line. But the default 000 must be set somewhere on the system, before being over ridden by the value in /etc/profile or $HOME/.profile.&lt;BR /&gt;&lt;BR /&gt;The default on trusted systems is 077 (or 07077 to be precise) where is this configured for example?</description>
      <pubDate>Mon, 19 Nov 2001 15:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616741#M885216</guid>
      <dc:creator>Anthony O'Connor</dc:creator>
      <dc:date>2001-11-19T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616742#M885217</link>
      <description>The default is definitely 000 as it is not set.&lt;BR /&gt;&lt;BR /&gt;It is a good practice to set it to 002 or 022 in /etc/profile so that files are not wide open by default for all users, then set it individually per user in their .profile if they something different.  Actually what you set it to depends on your situation.  I've seen this set to 077 as well so only the user could access his/her files.</description>
      <pubDate>Mon, 19 Nov 2001 15:43:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616742#M885217</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-11-19T15:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616743#M885218</link>
      <description>&amp;lt;&lt;BUT the="" default="" 000="" must="" be="" set="" somewhere="" on="" the="" system=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;umask is a shell environment variable and like&lt;BR /&gt;any variable if it is not set, it has  no value and is taken as 000.  When a file&lt;BR /&gt;is created it's default permissions as per&lt;BR /&gt;the open system call would be 777;  this&lt;BR /&gt;is subtracted from   the umask setting and the resulting permission will be the actuall file permission setting. So, if the umask is not set, the permission will always be 777.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;THE default="" on="" trusted="" systems="" is="" 077=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  I think , when you make a system trusted,&lt;BR /&gt;it adds the umask entry to the /etc/profile file!!&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj&lt;/THE&gt;&lt;/BUT&gt;</description>
      <pubDate>Mon, 19 Nov 2001 15:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616743#M885218</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-11-19T15:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616744#M885219</link>
      <description>&lt;BR /&gt;&amp;gt;umask is a shell environment variable and&lt;BR /&gt;&amp;gt;like any variable if it is not set, it has no&lt;BR /&gt;&amp;gt;value and is taken as 000. &lt;BR /&gt;&lt;BR /&gt;If it was an unset shell variable it would have a null value such as "   ", rather than "000". Wouldn't it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I think , when you make a system trusted,&lt;BR /&gt;&amp;gt;it adds the umask entry to the /etc/profile &lt;BR /&gt;&amp;gt;file!! &lt;BR /&gt;&lt;BR /&gt;No, it doesn't!!</description>
      <pubDate>Mon, 19 Nov 2001 16:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616744#M885219</guid>
      <dc:creator>Anthony O'Connor</dc:creator>
      <dc:date>2001-11-19T16:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616745#M885220</link>
      <description>Each process that runs on a system has its own file mode creation mask, which is usually inherited from its parent processes environment. Anyone who logs in via the network thro inetd gets the umask defined in /sbin/init.d/inetd. Any other services started on the box get the umask defined in /sbin/rc, as for root logins at the console? Well I'm not sure where init (which is the parent process of the getty) gets its mask from (if anywhere) - Perhaps its hard coded into the kernel...</description>
      <pubDate>Mon, 19 Nov 2001 17:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616745#M885220</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-11-19T17:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616746#M885221</link>
      <description>&amp;gt;umask is a shell environment variable and &lt;BR /&gt;&amp;gt;like any variable if it is not set, it has no &lt;BR /&gt;&amp;gt;value and is taken as 000. &lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt;&lt;IF it="" was="" an="" unset="" shell="" variable="" it="" would="" have="" a="" null="" value="" such="" as=""&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;     No. This value is slightly different from the usual shell variable settings.  As far as i know, that's because the file creation system calls, invoke umask system call to get the current umask setting.&lt;BR /&gt;THe umask system call is always sucessful&lt;BR /&gt;i.e, it no value is set it returns 0  and if the umask is set, it returns the umask value. So either case, the output is either a 0 or a umask value.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I think , when you make a system trusted, &lt;BR /&gt;&amp;gt;it adds the umask entry to the /etc/profile &lt;BR /&gt;&amp;gt;file!! &lt;BR /&gt;&lt;BR /&gt; &amp;lt;&lt;NO&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  Umm, intresting. I need to look into my trusted systems.  Will post back , if i find something.&lt;BR /&gt;&lt;BR /&gt;-raj&lt;/NO&gt;&lt;/IF&gt;</description>
      <pubDate>Mon, 19 Nov 2001 17:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616746#M885221</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-11-19T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616747#M885222</link>
      <description>Yep, it's true.  umask's default setting is 07077 for Trusted Systems...which is not correct and is fixed with PHKL_23226.  This patch changes the default umask on Trusted System environments to 077.&lt;BR /&gt;&lt;BR /&gt;It is a very good idea to set umask explicitly in /etc/profile AND /etc/csh.login so you know exactly what each user will get. Similarly, set umask for ftpd in /etc/inetd.conf.&lt;BR /&gt;&lt;BR /&gt;Finally, when writing scripts for cron or other batch operations, never assume that umask is safe...set it at the beginning of the script.  umask 077 is best for anything run by root. Then in your script, loosen the permissions on specific files when needed.</description>
      <pubDate>Mon, 19 Nov 2001 17:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616747#M885222</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-11-19T17:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: default umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616748#M885223</link>
      <description>Hello Anthony,&lt;BR /&gt;&lt;BR /&gt;"umask" is kernel parameter (and has always been ;-). There is a shell-builtin command "umask", of course, but this is only useful for *changing* it, the original value comes from the kernel, or - in rare cases, like "ftpd" - from the daemon's setup.&lt;BR /&gt;For shells it might be fine to set it "/etc/profile" and "/etc/cshrc", but what about CDE (X-Windows) and other daemons?&lt;BR /&gt;So, you might consider setting "umask" in each daemon's rc-script prior to starting the daemon process. To not influence something else enclose everything in parentheses like here:&lt;BR /&gt;( umask 027; /usr/lib/lpsched &amp;amp;&amp;amp; echo ...; )&lt;BR /&gt;( umask 077; /usr/sbin/inetd -k; )&lt;BR /&gt;&lt;BR /&gt;Some rc-scripts already do this, like "inetd", "net", and "syslogd", but other not (like "lp", "cron").&lt;BR /&gt;&lt;BR /&gt;Just my ???0.02,&lt;BR /&gt;Wodisc</description>
      <pubDate>Mon, 19 Nov 2001 19:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-umask/m-p/2616748#M885223</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-11-19T19:48:26Z</dc:date>
    </item>
  </channel>
</rss>

