<?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: How to set root umask to 022 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942960#M412014</link>
    <description>I believe you can change the system umask in /sbin/rc.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 25 Nov 2005 10:14:43 GMT</pubDate>
    <dc:creator>DCE</dc:creator>
    <dc:date>2005-11-25T10:14:43Z</dc:date>
    <item>
      <title>How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942955#M412009</link>
      <description>All,&lt;BR /&gt;I have a requirement to set root umask on a HP-UX system to 027. I can do it in .profile but all daemons already started will inherit the original umask (default is 0).&lt;BR /&gt;How do you think is possible to change from boot?&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;Roy</description>
      <pubDate>Fri, 25 Nov 2005 05:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942955#M412009</guid>
      <dc:creator>Roy Colica</dc:creator>
      <dc:date>2005-11-25T05:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942956#M412010</link>
      <description>Set that into /etc/profile file as,&lt;BR /&gt;&lt;BR /&gt;if [[ ${LOGNAME} = "root" ]]&lt;BR /&gt;then&lt;BR /&gt;  umask 022&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 25 Nov 2005 05:18:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942956#M412010</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-25T05:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942957#M412011</link>
      <description>Shalom roy,&lt;BR /&gt;&lt;BR /&gt;Root has an individual .profile&lt;BR /&gt;&lt;BR /&gt;Its in root's home directory, which is usually / or /root/&lt;BR /&gt;&lt;BR /&gt;Just add a umask 022 to .profile and you will be done.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Nov 2005 05:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942957#M412011</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-25T05:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942958#M412012</link>
      <description>umask setting will be set based on user accounts only. If you want to control to root users then put it in .profile of $HOME directory of root user or with /etc/profile as suggested in my previous reply.&lt;BR /&gt;&lt;BR /&gt;If you want to control to all users then put it in /etc/profile with umask 022 content.&lt;BR /&gt;&lt;BR /&gt;To change from boot then, put /usr/bin/umask 022 in /etc/rc.config file after for;do..done loop. (May work).&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Nov 2005 05:27:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942958#M412012</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-25T05:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942959#M412013</link>
      <description>Updating both /.profile and /etc/rc.config file root daemons will write files with mask 0 or 027?&lt;BR /&gt;Roy</description>
      <pubDate>Fri, 25 Nov 2005 05:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942959#M412013</guid>
      <dc:creator>Roy Colica</dc:creator>
      <dc:date>2005-11-25T05:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942960#M412014</link>
      <description>I believe you can change the system umask in /sbin/rc.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Nov 2005 10:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942960#M412014</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-11-25T10:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942961#M412015</link>
      <description>Bear in mind that you can set umask in /etc/profile, in root's .profile, and even in /sbin/rc for all the rc'ed scripts but that in no way guarantees that umask is then set for all processes --- even with a reboot. If a given executable makes a call to the umask() system call then the value of umask before that call makes no difference because the last umask setting for a given process wins. It will revert to the previous value when control returns to the parent process but if umask is called within a process there is no way to absolutely insure that umask is set to 027. This is actually a good thing because some utilities rely upon setting file modes to certain values regardless of umask.</description>
      <pubDate>Fri, 25 Nov 2005 21:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942961#M412015</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-25T21:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set root umask to 022</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942962#M412016</link>
      <description>Thanks.</description>
      <pubDate>Wed, 28 Dec 2005 12:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-root-umask-to-022/m-p/4942962#M412016</guid>
      <dc:creator>Roy Colica</dc:creator>
      <dc:date>2005-12-28T12:40:55Z</dc:date>
    </item>
  </channel>
</rss>

