<?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: With same UMASK and username, our 2 scheduling tools are generating logs with different permissi in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971210#M490307</link>
    <description>&lt;P&gt;Which matches your umask?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2017 15:35:04 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2017-07-18T15:35:04Z</dc:date>
    <item>
      <title>With same UMASK and username, our 2 scheduling tools are generating logs with different permissions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971109#M490304</link>
      <description>&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;We are using 2 scheduling tools1.) Tidal and 2.) Control-M to run our jobs in schedule.&lt;/P&gt;&lt;P&gt;They both connect to same&amp;nbsp;HPUX server and with same user ID.&lt;/P&gt;&lt;P&gt;However when we check the logs, we see a difference in the permission of files.&lt;/P&gt;&lt;P&gt;The files generated by Tidal executed scripts has 640 permission but files generated by Control-M have permission as 644.&lt;/P&gt;&lt;P&gt;Can someone please tell me &amp;nbsp;as we need to fix it to have the permissions in sync. Anything we can change to get the permissions same.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 06:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971109#M490304</guid>
      <dc:creator>manish0233</dc:creator>
      <dc:date>2017-07-18T06:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: With same UMASK and username, our 2 scheduling tools are generating logs with different permissi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971205#M490305</link>
      <description>&lt;P&gt;Have you contacted Tidal (Cisco?) and Control-M (BMC) support to see if this is the expected behavior? The umask value is only effective with an interactive login. These scheduling programs would have to setup their own enviroment when they run, just like cron jobs.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 14:56:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971205#M490305</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2017-07-18T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: With same UMASK and username, our 2 scheduling tools are generating logs with different permissi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971209#M490306</link>
      <description>&lt;P&gt;&amp;gt; With same UMASK and username, [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Whose "UMASK"?&amp;nbsp; And who creates these log files?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] The umask value is only effective with an interactive login.&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I wouldn't say that.&amp;nbsp; I'd expect any shell to have a umask.&amp;nbsp; Whether&lt;BR /&gt;any particular shell's umask has any effect on the permissions on these&lt;BR /&gt;log files depends on the program which creates the log files, about&lt;BR /&gt;which I know nothing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Have you contacted Tidal (Cisco?) and Control-M (BMC) support [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The people who supply these programs should know more than anyone&lt;BR /&gt;here (and certainly more than I).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971209#M490306</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2017-07-18T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: With same UMASK and username, our 2 scheduling tools are generating logs with different permissi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971210#M490307</link>
      <description>&lt;P&gt;Which matches your umask?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971210#M490307</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2017-07-18T15:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: With same UMASK and username, our 2 scheduling tools are generating logs with different permissi</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971314#M490308</link>
      <description>&lt;P&gt;In Control-M, the permissions of the job output files (sysout files) are controlled by a Control-M agent configuration parameter, and this parameter is named differently in Control-M V7 vs. V8.&lt;/P&gt;&lt;P&gt;Please see: &lt;A href="https://communities.bmc.com/docs/DOC-72852" target="_blank"&gt;https://communities.bmc.com/docs/DOC-72852&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For any other files created by the actual job scripts, you could add a command to your job scripts to explicitly set the umask to your preferred value before the commands that create the files, or add commands to the end of your job to explicitly chgrp/chmod the resulting files the way you want.&lt;/P&gt;&lt;P&gt;Whenever you're setting up a new job scheduler or other automation system, you might want to create a small script like this:&lt;/P&gt;&lt;PRE&gt;#!/bin/sh
exec &amp;gt; /tmp/environment-check-$(date +%Y%m%d-%H%M%S)&lt;BR /&gt;echo "Command string was: $0"&lt;BR /&gt;echo "Command line arguments:"&lt;BR /&gt;for i in "$@"&lt;BR /&gt;do&lt;BR /&gt;    echo "$i"&lt;BR /&gt;done
echo "Current username is: $(whoami)"
echo "id command output:"
id
echo "Current directory is: $(pwd)"&lt;BR /&gt;echo "Umask value is: $(umask)"&lt;BR /&gt;echo "TTY device is: $(tty)"
echo "Locale settings are:"
locale
echo "Soft ulimits are:"
ulimit -a
echo "Hard ulimits are:"
ulimit -a -H
echo "Environment variables:"
printenv&lt;/PRE&gt;&lt;P&gt;Then have your automation tool run this script once (i.e. schedule the script for running), and then read the resulting file in /tmp/environment-check-&amp;lt;timestamp&amp;gt;. It will tell you exactly what kind of shell environment is provided by the automation tool.&lt;/P&gt;&lt;P&gt;Yes, in theory the environment should match what you get by simply logging onto the system with the proper username. But in practice, some shells have a pretty complex logic on which startup scripts they run and which they don't, depending on whether the shell session is interactive (= has a TTY device associated with it) or not, and/or whether the session is started as a login shell (= first character of $0 is "-") or not.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 11:25:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/with-same-umask-and-username-our-2-scheduling-tools-are/m-p/6971314#M490308</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2017-07-19T11:25:19Z</dc:date>
    </item>
  </channel>
</rss>

