<?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: 3rd party app. creates files as rw-rw-rw in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/3rd-party-app-creates-files-as-rw-rw-rw/m-p/4750630#M731802</link>
    <description>Nancy,&lt;BR /&gt;&lt;BR /&gt;If you look in the shell code for the inetd startup progran /sbin/init.d/inetd you will see the following code:&lt;BR /&gt;&lt;BR /&gt;        mask=`umask`&lt;BR /&gt;        umask 000&lt;BR /&gt;&lt;BR /&gt;        if [ -z "$INETD" ] || [ "$INETD" -ne 0 ]; then&lt;BR /&gt;                [ -x /usr/sbin/inetd ] &amp;amp;&amp;amp; /usr/sbin/inetd $INETD_ARGS&lt;BR /&gt;                set_return&lt;BR /&gt;                if [ $rval -eq 0 ]; then&lt;BR /&gt;                        echo "Internet Services started"&lt;BR /&gt;                else&lt;BR /&gt;                        echo "Unable to start Internet Services"&lt;BR /&gt;                fi&lt;BR /&gt;        else&lt;BR /&gt;                echo "Internet Services Daemon is disabled"&lt;BR /&gt;                rval=2&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        umask $mask&lt;BR /&gt;&lt;BR /&gt;As you can see, when inetd is started, umask is set to 000. This is deliberate, and is supposed to make the umask for any daemon started by inetd neutral (well written daemons should never assume a umask anyway). &lt;BR /&gt;&lt;BR /&gt;I don't know Autosys as a product, but a quick google suggests you can set a umask for autosys in /etc/auto.profile ?&lt;BR /&gt;&lt;BR /&gt;Otherwise you could of course change this in the /sbin/init.d/inetd code, but you will need to be aware that this will affect all daemons started by inetd (with unknown consequences I guess), and any patches or updates to inetd may overwrite this. I guess it might also be possible to produce a small wrapper for autosys which is referenced in the /etc/inetd.conf file instead - not having autosys of course I can't suggest how you would go about that.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Wed, 09 Feb 2011 14:23:01 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2011-02-09T14:23:01Z</dc:date>
    <item>
      <title>3rd party app. creates files as rw-rw-rw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/3rd-party-app-creates-files-as-rw-rw-rw/m-p/4750629#M731801</link>
      <description>I have HPUX 11i servers that are running a third party softaware (Autosys) that is creating files as rw-rw-rw.  The process is started from inetd.  The umask is set to 022.  Why are these files being created this way and is there a way to avoid creating these files with these permissions.  &lt;BR /&gt;&lt;BR /&gt;Thank you in advance.</description>
      <pubDate>Wed, 09 Feb 2011 13:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/3rd-party-app-creates-files-as-rw-rw-rw/m-p/4750629#M731801</guid>
      <dc:creator>nancy rippey</dc:creator>
      <dc:date>2011-02-09T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party app. creates files as rw-rw-rw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/3rd-party-app-creates-files-as-rw-rw-rw/m-p/4750630#M731802</link>
      <description>Nancy,&lt;BR /&gt;&lt;BR /&gt;If you look in the shell code for the inetd startup progran /sbin/init.d/inetd you will see the following code:&lt;BR /&gt;&lt;BR /&gt;        mask=`umask`&lt;BR /&gt;        umask 000&lt;BR /&gt;&lt;BR /&gt;        if [ -z "$INETD" ] || [ "$INETD" -ne 0 ]; then&lt;BR /&gt;                [ -x /usr/sbin/inetd ] &amp;amp;&amp;amp; /usr/sbin/inetd $INETD_ARGS&lt;BR /&gt;                set_return&lt;BR /&gt;                if [ $rval -eq 0 ]; then&lt;BR /&gt;                        echo "Internet Services started"&lt;BR /&gt;                else&lt;BR /&gt;                        echo "Unable to start Internet Services"&lt;BR /&gt;                fi&lt;BR /&gt;        else&lt;BR /&gt;                echo "Internet Services Daemon is disabled"&lt;BR /&gt;                rval=2&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        umask $mask&lt;BR /&gt;&lt;BR /&gt;As you can see, when inetd is started, umask is set to 000. This is deliberate, and is supposed to make the umask for any daemon started by inetd neutral (well written daemons should never assume a umask anyway). &lt;BR /&gt;&lt;BR /&gt;I don't know Autosys as a product, but a quick google suggests you can set a umask for autosys in /etc/auto.profile ?&lt;BR /&gt;&lt;BR /&gt;Otherwise you could of course change this in the /sbin/init.d/inetd code, but you will need to be aware that this will affect all daemons started by inetd (with unknown consequences I guess), and any patches or updates to inetd may overwrite this. I guess it might also be possible to produce a small wrapper for autosys which is referenced in the /etc/inetd.conf file instead - not having autosys of course I can't suggest how you would go about that.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 09 Feb 2011 14:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/3rd-party-app-creates-files-as-rw-rw-rw/m-p/4750630#M731802</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-02-09T14:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party app. creates files as rw-rw-rw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/3rd-party-app-creates-files-as-rw-rw-rw/m-p/4750631#M731803</link>
      <description>Thank you for the reply.  Exactly what I was looking for</description>
      <pubDate>Wed, 09 Feb 2011 19:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/3rd-party-app-creates-files-as-rw-rw-rw/m-p/4750631#M731803</guid>
      <dc:creator>nancy rippey</dc:creator>
      <dc:date>2011-02-09T19:59:26Z</dc:date>
    </item>
  </channel>
</rss>

