<?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: system wide umask in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868911#M398276</link>
    <description>Well. We are all wrong.&lt;BR /&gt;&lt;BR /&gt;I have no umask in /etc/profile or our system&lt;BR /&gt;wide custom /usr/local/etc/profile, etc...&lt;BR /&gt;&lt;BR /&gt;I have commented out root's umask from .profile.&lt;BR /&gt;When I do a "remsh host1 umask" I get 022.&lt;BR /&gt;&lt;BR /&gt;This is the only system that has the&lt;BR /&gt;umask set to 022 globally. All the others are 00.&lt;BR /&gt;&lt;BR /&gt;I checked /sbin/rc and there is a umsak 022 on all the systems but they are still 00 globally. I also check /sbin/init.d/* and&lt;BR /&gt;they are all the same.&lt;BR /&gt;Where is 022 getting set on host1??&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Nov 2004 08:35:23 GMT</pubDate>
    <dc:creator>jerry1</dc:creator>
    <dc:date>2004-11-08T08:35:23Z</dc:date>
    <item>
      <title>system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868906#M398271</link>
      <description>I forgot how to set the system wide umask&lt;BR /&gt;from hp default of 00 to 022.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 13:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868906#M398271</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2004-11-04T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868907#M398272</link>
      <description>Set the umask in /etc/profile.</description>
      <pubDate>Thu, 04 Nov 2004 13:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868907#M398272</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-11-04T13:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868908#M398273</link>
      <description>Hi Jerry,&lt;BR /&gt;&lt;BR /&gt;the global file should be /etc/profile.&lt;BR /&gt;&lt;BR /&gt;The profile execution sequence is /etc/profile and then .profile(user's profile) (for ksh/bash/sh shell users)&lt;BR /&gt;&lt;BR /&gt;You can define umask in /etc/profile, then that can be overridden in .profile.&lt;BR /&gt;&lt;BR /&gt;You can put umask in .profile, but put the owner of .profile to root:root.&lt;BR /&gt;&lt;BR /&gt;This way a user can not modify your seetings in .profile.&lt;BR /&gt;&lt;BR /&gt;But note that a user familiar with umask can modify it at command prompt. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 13:31:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868908#M398273</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-11-04T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868909#M398274</link>
      <description>You can also try this in the /etc/profile. It locks down root a bit more than the users.&lt;BR /&gt;&lt;BR /&gt;if [[ $(/usr/bin/id -u) -eq 0 ]]&lt;BR /&gt;  then&lt;BR /&gt;    umask 077&lt;BR /&gt;  else&lt;BR /&gt;    umask 022&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 14:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868909#M398274</guid>
      <dc:creator>Doug Burton</dc:creator>
      <dc:date>2004-11-04T14:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868910#M398275</link>
      <description>That's why I forgot. It was to easy.&lt;BR /&gt;&lt;BR /&gt;Thanks all.</description>
      <pubDate>Thu, 04 Nov 2004 16:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868910#M398275</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2004-11-04T16:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868911#M398276</link>
      <description>Well. We are all wrong.&lt;BR /&gt;&lt;BR /&gt;I have no umask in /etc/profile or our system&lt;BR /&gt;wide custom /usr/local/etc/profile, etc...&lt;BR /&gt;&lt;BR /&gt;I have commented out root's umask from .profile.&lt;BR /&gt;When I do a "remsh host1 umask" I get 022.&lt;BR /&gt;&lt;BR /&gt;This is the only system that has the&lt;BR /&gt;umask set to 022 globally. All the others are 00.&lt;BR /&gt;&lt;BR /&gt;I checked /sbin/rc and there is a umsak 022 on all the systems but they are still 00 globally. I also check /sbin/init.d/* and&lt;BR /&gt;they are all the same.&lt;BR /&gt;Where is 022 getting set on host1??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2004 08:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868911#M398276</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2004-11-08T08:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868912#M398277</link>
      <description>what is the equivalnt of Solaris's /etc/default/init in HPUX, where in I can set the system level umask.</description>
      <pubDate>Fri, 19 Aug 2005 13:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868912#M398277</guid>
      <dc:creator>AMAT SA</dc:creator>
      <dc:date>2005-08-19T13:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868913#M398278</link>
      <description>As I understand it now. There are several&lt;BR /&gt;ways to set the umask but to set it as&lt;BR /&gt;a global default on that server we set&lt;BR /&gt;it in the HP-UX default files /etc/profile for sh,ksh and /etc/csh.login for csh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Aug 2005 16:24:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868913#M398278</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2005-08-19T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868914#M398279</link>
      <description>Oh, I forgot. You can also change it&lt;BR /&gt;in /sbin/init.d/inetd. inetd will then&lt;BR /&gt;have umask set for the services it provides.</description>
      <pubDate>Fri, 19 Aug 2005 16:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868914#M398279</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2005-08-19T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868915#M398280</link>
      <description>umask has been missing from /etc/profile forever. There is no equivalent file so you must put umask into /etc/profile. It is simply flat out wrong not to set umask for all logins. Put umask 022 in /etc/profile and also /etc/csh.login (and all other non-standard shells you may be using). it is one of the first security 'fixes' you have to do with new (and old) systems.</description>
      <pubDate>Fri, 19 Aug 2005 17:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868915#M398280</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-19T17:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: system wide umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868916#M398281</link>
      <description>umask, umask, who's gotta my umask?&lt;BR /&gt;&lt;BR /&gt;See yah.</description>
      <pubDate>Mon, 22 Aug 2005 13:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-wide-umask/m-p/4868916#M398281</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2005-08-22T13:33:21Z</dc:date>
    </item>
  </channel>
</rss>

