<?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: Crontab file permissions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127752#M152345</link>
    <description>Brian,&lt;BR /&gt;&lt;BR /&gt;The behavior that you are seeing is normal.  For 10.20 and 11.11 the behavior is exactly the  same.  The files are owned by root with the group ID set to the ID of the user.&lt;BR /&gt;&lt;BR /&gt;A little UNIX history, many releases ago crontab files used to be owned by the user and  not root.  It sounds like the author of your security policy is still remembering that tidbit of information.&lt;BR /&gt;&lt;BR /&gt;JL</description>
    <pubDate>Wed, 26 Nov 2003 12:56:49 GMT</pubDate>
    <dc:creator>James Lynch</dc:creator>
    <dc:date>2003-11-26T12:56:49Z</dc:date>
    <item>
      <title>Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127744#M152337</link>
      <description>Running HP-UX 10.20 cron file permissions change to be owned by root after using "crontab -e" as another user.  We have to chown the crontab back to the correct user everytime we edit the file in this way.  Our info sec group mandates crontabs must be owned by the user not root.  Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;B</description>
      <pubDate>Mon, 24 Nov 2003 22:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127744#M152337</guid>
      <dc:creator>Brian Ritzinger</dc:creator>
      <dc:date>2003-11-24T22:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127745#M152338</link>
      <description>Have you tried editing the crontab file as the user themselves?&lt;BR /&gt;&lt;BR /&gt;# su - otheruser&lt;BR /&gt;$ crontab -e&lt;BR /&gt;make changes, save file&lt;BR /&gt;$ logout&lt;BR /&gt;&lt;BR /&gt;Or an even better practise, as the other user, use:&lt;BR /&gt;$ crontab -l &amp;gt;myfile&lt;BR /&gt;$ vi myfile&lt;BR /&gt;make change and save&lt;BR /&gt;$ crontab myfile&lt;BR /&gt;&lt;BR /&gt;The files must be owned by the relevant user.&lt;BR /&gt;Also suggest you check patches in case there is one.</description>
      <pubDate>Mon, 24 Nov 2003 22:12:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127745#M152338</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-11-24T22:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127746#M152339</link>
      <description>Yes all changes to cron are done after su'ing to that user.  It does not matter if I "crontab -e" or dump it to a file first and then "crontab newcron".  The ownership changes to root.  I was hoping someone might have seen this and knows if a patch exists.</description>
      <pubDate>Mon, 24 Nov 2003 22:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127746#M152339</guid>
      <dc:creator>Brian Ritzinger</dc:creator>
      <dc:date>2003-11-24T22:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127747#M152340</link>
      <description>I believe I found the patch PHCO_19985.  Now getting it on my system is another problem.</description>
      <pubDate>Mon, 24 Nov 2003 22:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127747#M152340</guid>
      <dc:creator>Brian Ritzinger</dc:creator>
      <dc:date>2003-11-24T22:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127748#M152341</link>
      <description>That patch does not require any type of downtime. Also it has been superceded. See patches PHCO_22768 and PHCO_27422</description>
      <pubDate>Mon, 24 Nov 2003 22:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127748#M152341</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-11-24T22:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127749#M152342</link>
      <description>I looked at the other two, neither describe fixes to permissions.  I did however find 19985 on a depot at my work.  I just installed it. It did not fix my ownership problem but the crontab files are now modified/created as 400. They were 444 :)</description>
      <pubDate>Mon, 24 Nov 2003 22:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127749#M152342</guid>
      <dc:creator>Brian Ritzinger</dc:creator>
      <dc:date>2003-11-24T22:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127750#M152343</link>
      <description>It is possible, and probable based on my read of this thread that the permissions on the crontab files manually got out of whack.&lt;BR /&gt;&lt;BR /&gt;I'm no expert on 10.20, though I used it as a part time admin for a while.&lt;BR /&gt;&lt;BR /&gt;Got some bad news for your security group.&lt;BR /&gt;&lt;BR /&gt;Proper permissions on crontab files on 11.11&lt;BR /&gt;&lt;BR /&gt;-r--------   1 root       dba           3571 Oct  8 11:16 oracle&lt;BR /&gt;-r--------   1 root       sys           7633 Oct  2 11:10 root&lt;BR /&gt;-r--------   1 root       sag           1463 Sep 24 11:09 sag&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note root owns it, but the group is the primary group of the user that should own it.&lt;BR /&gt;&lt;BR /&gt;I did not modify the permissions on this file.&lt;BR /&gt;&lt;BR /&gt;I have found over the years that messing around with permissions on certain files is a recipe for overnight work.  It might be fine to change the permissions on those files, and Michael's practices are good, should be followed.&lt;BR /&gt;&lt;BR /&gt;It might be fine to put platinium tip spark plugs in my Truck. It might make me more secure because I can get away from criminals faster.  But... It might damage the engine.  Bad analogy, but its been a long day.&lt;BR /&gt;&lt;BR /&gt;It might have an unintended nasty effect as well.&lt;BR /&gt;&lt;BR /&gt;Sometimes the default permissions on files are bad.  In this case, the permissions are very tight, the crontab -e command lets you access them as the user involved.  &lt;BR /&gt;&lt;BR /&gt;With my usual lack of subtley, your security people, do they know Unix?  Why are the mandating this change? Does it make sense?&lt;BR /&gt;&lt;BR /&gt;If not in this case these questions may need to be asked in other mandated standards.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 24 Nov 2003 23:58:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127750#M152343</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-24T23:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127751#M152344</link>
      <description>Somewhere, sometime a policy was made that stated users cron files should be owned by that user.   There are many security policies, where I work, that I think are plain silly.  I just checked a Solaris system and found the same "problem".  Which I now think is not a problem.  Unfortunately changing the policy is easier said than done.&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies.</description>
      <pubDate>Tue, 25 Nov 2003 21:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127751#M152344</guid>
      <dc:creator>Brian Ritzinger</dc:creator>
      <dc:date>2003-11-25T21:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab file permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127752#M152345</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;The behavior that you are seeing is normal.  For 10.20 and 11.11 the behavior is exactly the  same.  The files are owned by root with the group ID set to the ID of the user.&lt;BR /&gt;&lt;BR /&gt;A little UNIX history, many releases ago crontab files used to be owned by the user and  not root.  It sounds like the author of your security policy is still remembering that tidbit of information.&lt;BR /&gt;&lt;BR /&gt;JL</description>
      <pubDate>Wed, 26 Nov 2003 12:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-file-permissions/m-p/3127752#M152345</guid>
      <dc:creator>James Lynch</dc:creator>
      <dc:date>2003-11-26T12:56:49Z</dc:date>
    </item>
  </channel>
</rss>

