<?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 permissions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104348#M444751</link>
    <description>in addition to above ..please tell me what could happend if i execute only this command..&lt;BR /&gt;&lt;BR /&gt;#crontab&lt;BR /&gt;&lt;BR /&gt;(without any options).i have not made any experiment as i came to know it will remove all the cron jobs..please let me know how much it is true...&lt;BR /&gt;&lt;BR /&gt;thanx in advance..</description>
    <pubDate>Fri, 18 Apr 2008 07:52:58 GMT</pubDate>
    <dc:creator>prasadb</dc:creator>
    <dc:date>2008-04-18T07:52:58Z</dc:date>
    <item>
      <title>crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104347#M444750</link>
      <description>hello all,&lt;BR /&gt;&lt;BR /&gt;will anybody please tell me how to assign the permission to modify the crontab to some another user..?&lt;BR /&gt;&lt;BR /&gt;and also let me know how to recover the crontab file is it is deleted accidently.&lt;BR /&gt;&lt;BR /&gt;thanx in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Apr 2008 07:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104347#M444750</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-04-18T07:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104348#M444751</link>
      <description>in addition to above ..please tell me what could happend if i execute only this command..&lt;BR /&gt;&lt;BR /&gt;#crontab&lt;BR /&gt;&lt;BR /&gt;(without any options).i have not made any experiment as i came to know it will remove all the cron jobs..please let me know how much it is true...&lt;BR /&gt;&lt;BR /&gt;thanx in advance..</description>
      <pubDate>Fri, 18 Apr 2008 07:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104348#M444751</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-04-18T07:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104349#M444752</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;You recover your crontab from backup.&lt;BR /&gt;&lt;BR /&gt;Path would be:&lt;BR /&gt; /var/spool/cron/crontabs/&lt;USERNAME&gt;  &lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;/USERNAME&gt;</description>
      <pubDate>Fri, 18 Apr 2008 07:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104349#M444752</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-04-18T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104350#M444753</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(without any options).i have not made any experiment as i came to know it will remove all the cron jobs..please let me know how much it is true...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yes. you will lose all the crontab entries if you do this (followed by: control+D).&lt;BR /&gt;&lt;BR /&gt;In fact, when you launch "crontab", the program will wait for your inputs. Pressing Control+D will commit the changes made. But, control+C will discard all changes and the current crontab settings will remain the same.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this help!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Apr 2008 08:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104350#M444753</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-04-18T08:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104351#M444754</link>
      <description>&amp;gt;will anybody please tell me how to assign the permission to modify the crontab to some another user?&lt;BR /&gt;&lt;BR /&gt;You can't.  Only you and root can modify it.&lt;BR /&gt;In fact on my 11.23 system, the original user can't read it (except by crontab -l):&lt;BR /&gt;$ ll /var/spool/cron/crontabs&lt;BR /&gt;-r--------   1 root   GRP-name  USR-name&lt;BR /&gt;&lt;BR /&gt;You could use chmod a+r on that file so anyone can read it.  I suppose you could allow group write: chmod g+w&lt;BR /&gt;&lt;BR /&gt;Why do you want to do this?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;please tell me what could happen if I execute only this command..&lt;BR /&gt;&amp;gt;#crontab&lt;BR /&gt;&amp;gt;(without any options). ... as I came to know it will remove all the cron jobs.&lt;BR /&gt;&lt;BR /&gt;This will empty the crontab entry for the user.</description>
      <pubDate>Fri, 18 Apr 2008 08:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104351#M444754</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-18T08:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104352#M444755</link>
      <description>Thanks Yogiraj..i got it...&lt;BR /&gt;&lt;BR /&gt;but tell me what will happen if i run #crontab without any option...</description>
      <pubDate>Fri, 18 Apr 2008 08:10:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104352#M444755</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-04-18T08:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104353#M444756</link>
      <description>&lt;!--!*#--&gt;Tests carried out here:&lt;BR /&gt;&lt;BR /&gt;SRV2&amp;gt;crontab -e&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |       |script&lt;BR /&gt;#    |     |of mo|     |of wk|       |&lt;BR /&gt;#----|-----|-----|-----|-----|-------|-----------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;"/tmp/crontab3Zqcya" 11 lines, 541 characters&lt;BR /&gt;SRV2&amp;gt;crontab -l&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |       |script&lt;BR /&gt;#    |     |of mo|     |of wk|       |&lt;BR /&gt;#----|-----|-----|-----|-----|-------|-----------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;&lt;BR /&gt;SRV2&amp;gt;crontab&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;^D &amp;lt;==========control+D pressed&lt;BR /&gt;SRV2&amp;gt;crontab -l&lt;BR /&gt;SRV2&amp;gt;crontab&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |       |script&lt;BR /&gt;#    |     |of mo|     |of wk|       |&lt;BR /&gt;#----|-----|-----|-----|-----|-------|-----------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;&lt;BR /&gt;SRV2&amp;gt;crontab -l&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |       |script&lt;BR /&gt;#    |     |of mo|     |of wk|       |&lt;BR /&gt;#----|-----|-----|-----|-----|-------|-----------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;SRV2&amp;gt;crontab&lt;BR /&gt;^C   &amp;lt;==========control+C pressed&lt;BR /&gt;SRV2&amp;gt;crontab -l&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# min|hour |day  |month|day  |       |script&lt;BR /&gt;#    |     |of mo|     |of wk|       |&lt;BR /&gt;#----|-----|-----|-----|-----|-------|-----------------------------------&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;# END OF TABLE           day0-&amp;gt;Sunday  day6-&amp;gt;Saturday&lt;BR /&gt;#*******************************************************************************&lt;BR /&gt;SRV2&amp;gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Apr 2008 08:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104353#M444756</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-04-18T08:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104354#M444757</link>
      <description>&amp;gt;but tell me what will happen if i run #crontab without any option...&lt;BR /&gt;&lt;BR /&gt;Mentioned it above.&lt;BR /&gt;&lt;BR /&gt;#crontab&lt;BR /&gt;&lt;BR /&gt;Will cause the program to interact with you. It just hangs waiting for your inputs.&lt;BR /&gt;&lt;BR /&gt;If you&lt;BR /&gt;  Control+C  =&amp;gt; discard changes and original content unchanged.&lt;BR /&gt;&lt;BR /&gt;  Control+D  =&amp;gt; commit changes and original content is LOST!!. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 18 Apr 2008 08:16:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104354#M444757</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-04-18T08:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104355#M444758</link>
      <description>To recover the crontab file in case of accidental deletion, add the following line to your crontab:&lt;BR /&gt;&lt;BR /&gt;0 5 * * 0 crontab -l &amp;gt; /tmp/cron.safe # Backup crontab file in case of accidental deletion&lt;BR /&gt;&lt;BR /&gt;This creates a backup copy in /tmp every Sunday at 5 o'clock in the morning. To make the backup current type:&lt;BR /&gt;&lt;BR /&gt;crontab /tmp/cron.safe&lt;BR /&gt;&lt;BR /&gt;If you have more than one user doing this, make sure they use different names for the safe copy: e.g. /tmp/cron.safe.username.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Fri, 18 Apr 2008 08:29:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104355#M444758</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2008-04-18T08:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104356#M444759</link>
      <description>&amp;gt;Mark: crontab /tmp/cron.safe&lt;BR /&gt;&lt;BR /&gt;If you are fiddling with crontabs, always use crontab -e.&lt;BR /&gt;And as you suggested, use crontab -l to create a backup, every so often.</description>
      <pubDate>Fri, 18 Apr 2008 09:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104356#M444759</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-18T09:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104357#M444760</link>
      <description>Dennis already told you to always use "crontab -e" for editing the crontab file.&lt;BR /&gt;&lt;BR /&gt;The reason for this is: the "crontab" command does more than just start the editor. It also signals the cron daemon after any changes are made. Upon receiving the signal, the cron daemon knows to re-read your crontab file.&lt;BR /&gt;&lt;BR /&gt;If this signalling is not done, the cron daemon will not notice your changes: it will keep executing the old version of your crontab information. &lt;BR /&gt;&lt;BR /&gt;I've seen this happen: it really confuses anyone who does not know how cron works.&lt;BR /&gt;&lt;BR /&gt;The best way to allow User A to edit User B:s crontab is to use sudo (or some other similar tool) to allow A to execute "crontab -e" as user B.&lt;BR /&gt;&lt;BR /&gt;The sudo configuration syntax for this would be:&lt;BR /&gt;&lt;BR /&gt;userA  hostname=(userB) crontab -e&lt;BR /&gt;&lt;BR /&gt;and the userA would have to execute this command:&lt;BR /&gt;&lt;BR /&gt;sudo -u userB crontab -e&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 18 Apr 2008 13:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104357#M444760</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-04-18T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104358#M444761</link>
      <description>many many thanks to allwho took time to help solve my problem..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Apr 2008 05:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104358#M444761</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-04-19T05:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: crontab permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104359#M444762</link>
      <description>many many thanks to allwho took time to help solve my problem..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Apr 2008 05:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-permissions/m-p/5104359#M444762</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-04-19T05:01:29Z</dc:date>
    </item>
  </channel>
</rss>

