<?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: Can normal users edit Crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440491#M207233</link>
    <description>If you're nuts or you really know what you're doing nobody of course prevents you from giving world write permission to this file&lt;BR /&gt; &lt;BR /&gt;# ll /var/spool/cron/crontabs/root&lt;BR /&gt;-r--------   1 root       sys            782 Jan 20  2004 /var/spool/cron/cronta&lt;BR /&gt;bs/root&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Dec 2004 04:59:32 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2004-12-10T04:59:32Z</dc:date>
    <item>
      <title>Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440481#M207223</link>
      <description>HI Guys,&lt;BR /&gt;&lt;BR /&gt;  A query, except super users, can normal users edit the crontab. Can I assign rights to normal users to perform that. And if yes, how do I do that?&lt;BR /&gt;&lt;BR /&gt;THank u!!&lt;BR /&gt;&lt;BR /&gt;regards..</description>
      <pubDate>Thu, 09 Dec 2004 19:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440481#M207223</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2004-12-09T19:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440482#M207224</link>
      <description>Each user can edit his/her own crontab.  You just need to edit /var/adm/cron.allow to allow them to run jobs.&lt;BR /&gt;&lt;BR /&gt;If you are talking about them editing root's crontab, then no they can't, and I wouldn't want them to (would you want a user to randomly put something like 'shutdown -hy 0' in root's crontab?  I think NOT!).&lt;BR /&gt;&lt;BR /&gt;There are ways to allow that via things like sudo though.</description>
      <pubDate>Thu, 09 Dec 2004 20:12:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440482#M207224</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-12-09T20:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440483#M207225</link>
      <description>You probably could assign rights to the file that the root crontab stores its commands in.&lt;BR /&gt;&lt;BR /&gt;This would be a terrible idea and security threat. The kind of idea that would cause you to flunk a security audit. Never, never never give regular users root access accept under controlled circumstances.&lt;BR /&gt;&lt;BR /&gt;For example the passwd command is a SUID command because the user needs to update a root only file for writes, /etc/passwd&lt;BR /&gt;&lt;BR /&gt;To give users access to root cron would be like placing a "have an IT disaster here please" sign on your forehead.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 09 Dec 2004 20:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440483#M207225</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-12-09T20:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440484#M207226</link>
      <description>Hi Henry&lt;BR /&gt;&lt;BR /&gt;I think you can edit the cron.allow and cron.deny.&lt;BR /&gt;&lt;BR /&gt;If only the cron.deny file exists, any user whose name does not appear in the file can use crontab command.&lt;BR /&gt;&lt;BR /&gt;A user cannot use the crontab command if one of the following is true&lt;BR /&gt;1) The cron.allow file and cron.deny file does not exist(allows root user only)&lt;BR /&gt;2) The cron.allow file exists but the user's login name not listed in cron.allow&lt;BR /&gt;3) The cron.deny file exists and the user login name is listed on it&lt;BR /&gt;&lt;BR /&gt;Rashid&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Dec 2004 21:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440484#M207226</guid>
      <dc:creator>Rashid Hamid</dc:creator>
      <dc:date>2004-12-09T21:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440485#M207227</link>
      <description>Yes - you have to add the users to  /var/adm/cron.allow.&lt;BR /&gt;&lt;BR /&gt;Then, they execute:&lt;BR /&gt;&lt;BR /&gt;crontab -e&lt;BR /&gt;&lt;BR /&gt;man cron for more info.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 10 Dec 2004 00:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440485#M207227</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-12-10T00:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440486#M207228</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; Thanks for the valuable inputs. &lt;BR /&gt;My system does not have cron.deny file, I have added my username in the cron.allow file but I was not able to write to crontab. Is there any explanation for this?&lt;BR /&gt;&lt;BR /&gt;Thanks and regards</description>
      <pubDate>Fri, 10 Dec 2004 00:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440486#M207228</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2004-12-10T00:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440487#M207229</link>
      <description>If you list username in cron.allow, only these users can use cron. other can not.&lt;BR /&gt;When saving cron.allow try to use:"wq!" instead "wq".&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2004 01:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440487#M207229</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2004-12-10T01:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440488#M207230</link>
      <description>I hope you are using the command&lt;BR /&gt;&lt;BR /&gt;crontab -e&lt;BR /&gt;&lt;BR /&gt;for creating cron entries.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Fri, 10 Dec 2004 02:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440488#M207230</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-12-10T02:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440489#M207231</link>
      <description>did you restart crond after you change config files ?&lt;BR /&gt;&lt;BR /&gt;P.S.&lt;BR /&gt;Send exact error msg pls ?</description>
      <pubDate>Fri, 10 Dec 2004 03:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440489#M207231</guid>
      <dc:creator>Ivajlo Yanakiev</dc:creator>
      <dc:date>2004-12-10T03:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440490#M207232</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;also check if the cron daemon is running!&lt;BR /&gt;&lt;BR /&gt;ps -ef|grep cron &lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2004 04:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440490#M207232</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-12-10T04:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440491#M207233</link>
      <description>If you're nuts or you really know what you're doing nobody of course prevents you from giving world write permission to this file&lt;BR /&gt; &lt;BR /&gt;# ll /var/spool/cron/crontabs/root&lt;BR /&gt;-r--------   1 root       sys            782 Jan 20  2004 /var/spool/cron/cronta&lt;BR /&gt;bs/root&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2004 04:59:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440491#M207233</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-12-10T04:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440492#M207234</link>
      <description>As root do:&lt;BR /&gt;&lt;BR /&gt;crontab -e username&lt;BR /&gt;&lt;BR /&gt;Does that work?&lt;BR /&gt;&lt;BR /&gt;Save it, is it in:&lt;BR /&gt;&lt;BR /&gt;/var/spool/cron/crontabs&lt;BR /&gt;&lt;BR /&gt;cron.allow should be in:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/cron/&lt;BR /&gt;&lt;BR /&gt;man crontab for more info&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 10 Dec 2004 10:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440492#M207234</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-12-10T10:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440493#M207235</link>
      <description>1) Which crontab file were you trying to write to?&lt;BR /&gt;&lt;BR /&gt;2) How were you editing it?&lt;BR /&gt;&lt;BR /&gt;If you did something like 'vi /var/spool/cron/crontabs/root' as a normal user and tried to modify and save it, then it won't work.  You'd have to modify the permissions of the file (which I would NOT recommend) to allow that.&lt;BR /&gt;&lt;BR /&gt;If you do a 'crontab -e' as a normal user then you will edit YOUR OWN crontab file and NOT anyone else's.&lt;BR /&gt;&lt;BR /&gt;What EXACTLY are you trying to accomplish?  Whose crontab file do you want normal users to edit?</description>
      <pubDate>Fri, 10 Dec 2004 10:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440493#M207235</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-12-10T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440494#M207236</link>
      <description>Thanks for your valuble advises..&lt;BR /&gt;&lt;BR /&gt;Actually wat I am trying to do is to add an cron job to my system. I have added my username in the cron.allow, and there is no cron.deny file in my system. &lt;BR /&gt;&lt;BR /&gt;However, when I try to create&lt;BR /&gt;&amp;gt; crontab -e &lt;BR /&gt;and then tried to saved the file with "wq!"&lt;BR /&gt;&lt;BR /&gt;it prompted me this &lt;BR /&gt;"Cant create your crontab file in crontab directory"&lt;BR /&gt;&lt;BR /&gt;May I know why this is happening?&lt;BR /&gt;&lt;BR /&gt;thanks!!&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2004 21:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440494#M207236</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2004-12-13T21:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440495#M207237</link>
      <description>did you change dir access using chmod ???&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 07:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440495#M207237</guid>
      <dc:creator>Ivajlo Yanakiev</dc:creator>
      <dc:date>2004-12-14T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can normal users edit Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440496#M207238</link>
      <description>Did you try it as root?&lt;BR /&gt;&lt;BR /&gt;crontab -e yourid&lt;BR /&gt;&lt;BR /&gt;What is permission of &lt;BR /&gt;&lt;BR /&gt;/usr/bin/crontab&lt;BR /&gt;&lt;BR /&gt;Should be:&lt;BR /&gt;-r-sr-xr-x   1 root       bin          24576 Nov 14  2000 /usr/bin/crontab&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 14 Dec 2004 09:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-normal-users-edit-crontab/m-p/3440496#M207238</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-12-14T09:42:52Z</dc:date>
    </item>
  </channel>
</rss>

