<?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: cron getting zero/blank in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255915#M332233</link>
    <description>from previous post "Tripwire may ..... but not who or how (and after the fact of course)</description>
    <pubDate>Thu, 21 Aug 2008 18:45:00 GMT</pubDate>
    <dc:creator>OldSchool</dc:creator>
    <dc:date>2008-08-21T18:45:00Z</dc:date>
    <item>
      <title>cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255905#M332223</link>
      <description>&lt;BR /&gt;HP-UX B.11.00&lt;BR /&gt;&lt;BR /&gt;we have been observing a particular user's cron job is getting zeroed out randomly.(under /var/spool/cron/crontabs).&lt;BR /&gt;&lt;BR /&gt; i know of only crontab getting zero while editing if the /var FS get filled at the same time.Any one observed similar issue?&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2008 14:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255905#M332223</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-08-21T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255906#M332224</link>
      <description>well...the owner of the crontab can certainly clobber it....&lt;BR /&gt;&lt;BR /&gt;I'd start by asking the "owner" what, if any, changes they were attempting to make.&lt;BR /&gt;&lt;BR /&gt;I take it you mean the file is still there, but empty, as opposed to deleted.&lt;BR /&gt;&lt;BR /&gt;accidents when doing "crontab -e" would cause this.  I encourage doing:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt; &lt;FILE&gt;&lt;BR /&gt;vi &lt;FILE&gt;&lt;BR /&gt;crontab &lt;FILE&gt; &lt;BR /&gt;&lt;BR /&gt;instead of directly editting it, btw.&lt;/FILE&gt;&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Thu, 21 Aug 2008 14:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255906#M332224</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-08-21T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255907#M332225</link>
      <description>is it possible to have any kind of auditing seton the system which can be used to track any operation on a particular file? Any idess?</description>
      <pubDate>Thu, 21 Aug 2008 16:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255907#M332225</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-08-21T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255908#M332226</link>
      <description>First, check ownership / permissions on the directories:&lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x  26 bin        bin           3072 Jul 25  2007 /var&lt;BR /&gt;dr-xr-xr-x  16 bin        bin           1024 Aug 24  2005 /var/spool&lt;BR /&gt;dr-xr-xr-x   5 bin        bin           1024 Aug 21 14:05 /var/spool/cron&lt;BR /&gt;dr-xr-xr-x   2 bin        bin             96 Aug 21 14:07 /var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and the actual crontabs:&lt;BR /&gt;-r--------   1 root       sys             73 Aug 21 14:07 l00s7m&lt;BR /&gt;-r--------   1 root       sys            314 Aug 14 14:13 root&lt;BR /&gt;&lt;BR /&gt;It sounds like somebody tried to do "crontab -e" and /tmp was full.  if they exited with a "ZZ" or "wq" it would have saved an empty file.&lt;BR /&gt;&lt;BR /&gt;Tripwire may be of some use...it'll tell you the file changed, but not who or how (and aftrer the fact of course)&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Tripwire_(software)" target="_blank"&gt;http://en.wikipedia.org/wiki/Tripwire_(software)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Event auditing might get it, but I believe that is system-wide, not file specific.  You might examine the .sh_history file for the user in question, if available.  If you've many crontab users, and only one is having issues, then it is almost certainly user error.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2008 17:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255908#M332226</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-08-21T17:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255909#M332227</link>
      <description>Hi Santhosh:&lt;BR /&gt;&lt;BR /&gt;In additino to Court's advice for handling 'crontabs' [which I follow too], you might examine the '.sh_history' of the affected user for clues.&lt;BR /&gt;&lt;BR /&gt;You might also look at 'root's '.sh_history' since a properly configured '/var/spool/cron/crontabs' directory holds files owned by *root* and will not allow truncation nor overwriting the files therein by users other than root.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2008 17:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255909#M332227</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-21T17:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255910#M332228</link>
      <description>you might also inspect the jobs run out of root's crontab.  Perhaps one of them is accidentally clearing the file.  &lt;BR /&gt;&lt;BR /&gt;If the permissions are set properly, root should be the only one who can write/overwrite the user's crontab (except when the user does the "crontab -e" thing noted above)</description>
      <pubDate>Thu, 21 Aug 2008 17:20:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255910#M332228</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-08-21T17:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255911#M332229</link>
      <description>hmmm...james beat me to it...but only by 45 seconds</description>
      <pubDate>Thu, 21 Aug 2008 17:22:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255911#M332229</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-08-21T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255912#M332230</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; OldSchool: hmmm...james beat me to it...but only by 45 seconds&lt;BR /&gt;&lt;BR /&gt;Yeah, I saw that too.  Seems like great minds run in the same circle [or, "rut" if you prefer]  :-}}&lt;BR /&gt;&lt;BR /&gt;{ too: I said "Court" but meant "OldSchool" }&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2008 17:27:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255912#M332230</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-21T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255913#M332231</link>
      <description>yes /var was oned by the cron user who was effected. Just changed. will oberve it.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2008 18:00:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255913#M332231</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-08-21T18:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255914#M332232</link>
      <description>"When first initialized, Open Source Tripwire scans the file system as directed by the administrator and stores information on each file scanned in a database. At a later date the same files are scanned and the results compared against the stored values in the database"&lt;BR /&gt;&lt;BR /&gt;sounds like it reports the difference . will it help to tell what casued the change?</description>
      <pubDate>Thu, 21 Aug 2008 18:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255914#M332232</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-08-21T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255915#M332233</link>
      <description>from previous post "Tripwire may ..... but not who or how (and after the fact of course)</description>
      <pubDate>Thu, 21 Aug 2008 18:45:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255915#M332233</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-08-21T18:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: cron getting zero/blank</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255916#M332234</link>
      <description>&amp;gt;  /var was oned by the cron user who was effected.&lt;BR /&gt; &lt;BR /&gt;That is very bad. The top level directories and mountpoints must never be owned by any user except root. Is the root password secure? That is, do inexperienced or untrained people know the root password? &lt;BR /&gt; &lt;BR /&gt;Another way to zero crontab is to run it without any parameters. An inexperienced user might type: crontab, then the user types ctrl-d to get a system prompt. Now crontab has been blown away by the user. Look at the user's shell history file. Any crontab commands with no option?</description>
      <pubDate>Fri, 22 Aug 2008 00:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-getting-zero-blank/m-p/4255916#M332234</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-08-22T00:04:58Z</dc:date>
    </item>
  </channel>
</rss>

