<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479154#M798745</link>
    <description>David,&lt;BR /&gt;&lt;BR /&gt;Just keep in mind that if the user has write permition for that script he can modify the script the way he wants ( rm -r * for example)  and the script will be run with root rights. Just imagine what can happen....&lt;BR /&gt;&lt;BR /&gt;I would use su -l user -c script_name&lt;BR /&gt;&lt;BR /&gt;Ovidiu</description>
    <pubDate>Sun, 07 Jan 2001 03:14:59 GMT</pubDate>
    <dc:creator>Ovidiu D. Raita</dc:creator>
    <dc:date>2001-01-07T03:14:59Z</dc:date>
    <item>
      <title>Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479151#M798742</link>
      <description>I set up a cronjob for a user that runs at 1 AM.  The cron job runs fine. The job runs as&lt;BR /&gt;root instead of the username.  This way it is easier to keep an eye on. We have one machine and the only user who needs a cronjob. &lt;BR /&gt;&lt;BR /&gt;I was wondering if it is bad form to have the job run as root instead of the username. The cronjob is not related to the OS. Just an application job that prints several reports.</description>
      <pubDate>Thu, 04 Jan 2001 19:20:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479151#M798742</guid>
      <dc:creator>David Peacock</dc:creator>
      <dc:date>2001-01-04T19:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479152#M798743</link>
      <description>Hi David,&lt;BR /&gt;Well, to read the  execution output (cron has mailed it to root) you will have to be root, to change the schedule you would have to be root...&lt;BR /&gt;the best is to create an operator uid=&amp;gt; like oper like that you could give the passwd of oper to who is in charge of the job...&lt;BR /&gt;Like that youre on the safe side...&lt;BR /&gt;&lt;BR /&gt;all the best&lt;BR /&gt;Victor&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jan 2001 19:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479152#M798743</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-01-04T19:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479153#M798744</link>
      <description>David:&lt;BR /&gt;&lt;BR /&gt;If a task doesn't need to run as 'root', then don't cron it from root.  This is especially true if root isn't the owner of the script!!!&lt;BR /&gt;&lt;BR /&gt;From a security, accounting, and management standpoint don't clutter root's crontab with anything that doesn't need to be there.&lt;BR /&gt;&lt;BR /&gt;A middleground would be to use: 'su - &lt;USER&gt; -c &lt;COMMAND&gt;' in root's crontab to handle things that you (root) want to control.&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/COMMAND&gt;&lt;/USER&gt;</description>
      <pubDate>Thu, 04 Jan 2001 19:46:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479153#M798744</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-01-04T19:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479154#M798745</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;Just keep in mind that if the user has write permition for that script he can modify the script the way he wants ( rm -r * for example)  and the script will be run with root rights. Just imagine what can happen....&lt;BR /&gt;&lt;BR /&gt;I would use su -l user -c script_name&lt;BR /&gt;&lt;BR /&gt;Ovidiu</description>
      <pubDate>Sun, 07 Jan 2001 03:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479154#M798745</guid>
      <dc:creator>Ovidiu D. Raita</dc:creator>
      <dc:date>2001-01-07T03:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479155#M798746</link>
      <description>Hi David&lt;BR /&gt;&lt;BR /&gt;Ovidiu is has hit the nail on the head.&lt;BR /&gt;Never Never give a user this amount of power.  &lt;BR /&gt;&lt;BR /&gt;It is quite feasible that this user may one day wish to clean up these jobs and put a rm -r * in their script. &lt;BR /&gt;This user, scripting with this power can ftp out any data on the machine, copy payroll data to their own dir, create a root level entry in the passwd file, leave a software package for you if they were fired - the list is endless.&lt;BR /&gt;&lt;BR /&gt;Two options come to mind: -&lt;BR /&gt;&lt;BR /&gt;1.   You take full control of their routine.&lt;BR /&gt;2.   Use su in the crontab - as already mentioned.&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Jan 2001 18:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479155#M798746</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-01-07T18:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479156#M798747</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;If you want to avoid security issues you can either:&lt;BR /&gt;1. Let that script run in the user's crontab. This will guarantee that no harm can be done at the system level, as script will run with the user's UID.&lt;BR /&gt;2. Have that script in root's crontab, but run it with 'su - &lt;USERNAME&gt; -c &amp;lt;scriptname&amp;gt;'&lt;BR /&gt;&lt;BR /&gt;In the second case, root will have full control over the job: when it runs, receive email messages....&lt;BR /&gt;&lt;BR /&gt;Both will be OK at the security level.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Mon, 08 Jan 2001 06:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479156#M798747</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-01-08T06:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479157#M798748</link>
      <description>Thanks for the responses. &lt;BR /&gt;&lt;BR /&gt;I am the only UNIX guy who works in our department and it helps to bounce these issues off of UNIX people. &lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jan 2001 19:35:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479157#M798748</guid>
      <dc:creator>David Peacock</dc:creator>
      <dc:date>2001-01-09T19:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479158#M798749</link>
      <description>Hi David&lt;BR /&gt;I am sure I am not alone is saying you are most welcome.&lt;BR /&gt;&lt;BR /&gt;:^)&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Wed, 10 Jan 2001 23:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479158#M798749</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-01-10T23:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479159#M798750</link>
      <description>Hi David:&lt;BR /&gt;&lt;BR /&gt;You are definitely NOT alone!  The more I learn the more I realize how much I don't know; trite, perhaps, but so true.  This Forum (and others) exist for ALL of us to learn and to teach.  Welcome.  Please come and stay.&lt;BR /&gt;&lt;BR /&gt;Regards, Jim.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 10 Jan 2001 23:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2479159#M798750</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-01-10T23:42:50Z</dc:date>
    </item>
  </channel>
</rss>

