<?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 removal in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432667#M3698</link>
    <description>I prefer to disable a user for a period of time instead of deleting them out immediately.  There are a variety of audit trails that are impacted, particularly with database applications.  As a minimum, I would hold on to the user existance until the next FULL database backup that is part of your long term backup strategy (not incremental).  The best way to accomplish this is by locking out their password.&lt;BR /&gt;&lt;BR /&gt;I also perform a find on the system looking for files that the user owns and keep a list of their attributes for auditing purposes.  From this list I also review its contents and move any files that may have an impact to areas that I can have access to later.  For instance, move the user crontab to a backup area.  The jobs will no longer process, but you have a reference to what used to process in the event that something there is critical.</description>
    <pubDate>Thu, 27 Jul 2000 15:49:35 GMT</pubDate>
    <dc:creator>Tim Malnati</dc:creator>
    <dc:date>2000-07-27T15:49:35Z</dc:date>
    <item>
      <title>crontab removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432662#M3693</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;K460, HP-UX 10.20 . I have one user who left and so I used " userdel -r login" to remove his account from that machine. After some time I started getting lots of emails about his cronjobs. I checked and found that his crontab entry in /var/spool/cron/crontabs was still there and it was getting executed, since his home directory was removed , i was getting the falied cronjobs email.&lt;BR /&gt;&lt;BR /&gt;My question is userdel should have removed the users all data including his cronjobs. If not , whats the best way to do it ( rather than deleting it from /var/spool/cron/crontabs)&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jul 2000 16:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432662#M3693</guid>
      <dc:creator>Commadore Peaster</dc:creator>
      <dc:date>2000-07-25T16:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: crontab removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432663#M3694</link>
      <description>The userdel command will not remove a users crontab file. The crontab command is an SUID program so the crontab files are owned by root not the user you deleted. All you need to do is remove the uneeded crontab file from /var/spool/cron/crontabs.&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
      <pubDate>Tue, 25 Jul 2000 16:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432663#M3694</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2000-07-25T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: crontab removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432664#M3695</link>
      <description>The userdel command does not work on the crontabs.&lt;BR /&gt;&lt;BR /&gt;You could edit the crontab using crontab -e and then remove the entries in question.&lt;BR /&gt;If this crontab is as the user, the crontabs are in /var/spool/cron/crontabs/&lt;USER&gt;.&lt;BR /&gt;You could manually remove the crontab file for the user but I would save a backup copy. Then stop/restart the crontab process, this will force a reread if you do the manual removal.&lt;BR /&gt;&lt;BR /&gt;&lt;/USER&gt;</description>
      <pubDate>Tue, 25 Jul 2000 16:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432664#M3695</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-07-25T16:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: crontab removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432665#M3696</link>
      <description>Write a wrapper for deleting users which does any local or additional housekeeping that userdel does not do.&lt;BR /&gt;This could include deleting crontab jobs, atjobs, mail file, pending printer jobs, ...&lt;BR /&gt;&lt;BR /&gt;It may be advantageous to perform a special backup of the home directories / other infrastructure prior to running userdel. The user may run key infrastructure tasks under their login such as reporting, release control, ...&lt;BR /&gt;&lt;BR /&gt;To delete the jobs, as your are running userdel as root you may just as well delete the physical file&lt;BR /&gt;/var/spool/cron/crontabs/${user}&lt;BR /&gt;&lt;BR /&gt;I would also keep a logfile of who was deleted when, by whom and from which login client.&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jul 2000 15:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432665#M3696</guid>
      <dc:creator>Jeremy Dean_3</dc:creator>
      <dc:date>2000-07-27T15:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: crontab removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432666#M3697</link>
      <description>Thank you all . &lt;BR /&gt;I think if the mails had not hit me , I would have not noted it. And its right to add a wrapper around userdel. &lt;BR /&gt;My colleague ( sun admin) told me that sun has a nice feature that , even if the crontabs of the user are not removed , the system checks if the user exists before executing his cronjobs and so if the user is non-existent his cronjobs will not get executed. I hope HP implements something in future patches. Not a big deal.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jul 2000 15:35:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432666#M3697</guid>
      <dc:creator>Commadore Peaster</dc:creator>
      <dc:date>2000-07-27T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: crontab removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432667#M3698</link>
      <description>I prefer to disable a user for a period of time instead of deleting them out immediately.  There are a variety of audit trails that are impacted, particularly with database applications.  As a minimum, I would hold on to the user existance until the next FULL database backup that is part of your long term backup strategy (not incremental).  The best way to accomplish this is by locking out their password.&lt;BR /&gt;&lt;BR /&gt;I also perform a find on the system looking for files that the user owns and keep a list of their attributes for auditing purposes.  From this list I also review its contents and move any files that may have an impact to areas that I can have access to later.  For instance, move the user crontab to a backup area.  The jobs will no longer process, but you have a reference to what used to process in the event that something there is critical.</description>
      <pubDate>Thu, 27 Jul 2000 15:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-removal/m-p/2432667#M3698</guid>
      <dc:creator>Tim Malnati</dc:creator>
      <dc:date>2000-07-27T15:49:35Z</dc:date>
    </item>
  </channel>
</rss>

