<?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 remove in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445849#M207971</link>
    <description>1. Check .profile to determine whether history is set or not&lt;BR /&gt;vi /$USER_HOME_DIRECTORY/.profile&lt;BR /&gt;--- search this line---&lt;BR /&gt;export HISTFILE=/.sh_history&lt;BR /&gt;if it exits, history is set on your system for that user.&lt;BR /&gt;&lt;BR /&gt;2. If user have a history file, check user's history file to know what happend&lt;BR /&gt;# vi /$USER_HOME_DIRECTORY/.sh_history</description>
    <pubDate>Sun, 19 Dec 2004 21:47:33 GMT</pubDate>
    <dc:creator>Nguyen Anh Tien</dc:creator>
    <dc:date>2004-12-19T21:47:33Z</dc:date>
    <item>
      <title>Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445840#M207962</link>
      <description>Guys,&lt;BR /&gt;&lt;BR /&gt;Need help here, I am running on HPUX 11.00. I came to the office this morning and found that on of the user profile's crontab are gone as well as the command prompt of the user is change. This username is an application user.&lt;BR /&gt;&lt;BR /&gt;The only clue that I have is the .profile of the user was modified around 0007H ( Dec 17).&lt;BR /&gt;&lt;BR /&gt;Is there a way to check how that happened?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Paul</description>
      <pubDate>Fri, 17 Dec 2004 05:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445840#M207962</guid>
      <dc:creator>Paul_481</dc:creator>
      <dc:date>2004-12-17T05:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445841#M207963</link>
      <description>You can try to see his last connections and last root's connection with the "last" command.&lt;BR /&gt;&lt;BR /&gt;Maybe there are still traces in .sh_history in user's and root home directories.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Dec 2004 06:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445841#M207963</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-17T06:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445842#M207964</link>
      <description>Problem is /var/adm/wtmp is non-existent.</description>
      <pubDate>Fri, 17 Dec 2004 06:26:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445842#M207964</guid>
      <dc:creator>Paul_481</dc:creator>
      <dc:date>2004-12-17T06:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445843#M207965</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;Does this user have a history file ?&lt;BR /&gt;&lt;BR /&gt;# cat /$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Fri, 17 Dec 2004 06:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445843#M207965</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-12-17T06:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445844#M207966</link>
      <description>yes it has, but i cant see any command executed that could remove the cron.&lt;BR /&gt;&lt;BR /&gt;Currently the system don't have any /var/adm/wtmp. How do I recreated it?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Paul</description>
      <pubDate>Fri, 17 Dec 2004 07:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445844#M207966</guid>
      <dc:creator>Paul_481</dc:creator>
      <dc:date>2004-12-17T07:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445845#M207967</link>
      <description>What about root's .sh_history ?&lt;BR /&gt;&lt;BR /&gt;(I don't know what process populates wtmp file)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Dec 2004 08:15:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445845#M207967</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-17T08:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445846#M207968</link>
      <description>From the wtmp man page:&lt;BR /&gt; &lt;BR /&gt;"Also note that wtmp and btmp are not created by the programs that maintain them. Thus, if these files are removed, record-keeping is turned off."&lt;BR /&gt; &lt;BR /&gt;Oops. Some root user probably saw wtmp getting large and simply removed it (ouch!) so commands like last will no longer produce anything. wtmp can be created with:&lt;BR /&gt; &lt;BR /&gt;touch /var/adm/wtmp&lt;BR /&gt;chmod 664 /var/adm/wtmp&lt;BR /&gt;chown adm:adm /var/adm/wtmp&lt;BR /&gt; &lt;BR /&gt;Also make sure that /var/adm/btmp exists. If not, use the touch/chmod/chown as above BUT make sure chmod is 640 (NO ONE gets to read btmp except root). lastb is the command that formats the btmp file.&lt;BR /&gt; &lt;BR /&gt;As far as the culprit that made the changes, the user may not have made the changes, a root user ocould have done the deed. Check for duplicate root users:&lt;BR /&gt; &lt;BR /&gt;logins -d&lt;BR /&gt; &lt;BR /&gt;Multiple UID=0 is a BIG security no-no and one of the first hacks made by an intruder. You can also grep through all the /home/*/.sh_history files:&lt;BR /&gt; &lt;BR /&gt;grep username /home/*/.sh_history&lt;BR /&gt; &lt;BR /&gt;Also check if any of the HOME directories have missing .sh_history files, zero'ed .sh_history files, or the permission/ownership on the .sh_history file prevents the owner's shell from recording any commands. Any of those 3 conditions needs to be investigated.</description>
      <pubDate>Fri, 17 Dec 2004 08:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445846#M207968</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-12-17T08:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445847#M207969</link>
      <description>Reload the missing files from Backup Tapes.&lt;BR /&gt;&lt;BR /&gt;You had better have Backup Tapes.</description>
      <pubDate>Fri, 17 Dec 2004 08:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445847#M207969</guid>
      <dc:creator>Stuart Abramson</dc:creator>
      <dc:date>2004-12-17T08:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445848#M207970</link>
      <description>Thanks everyone for the reply, points will be assigned later.&lt;BR /&gt;&lt;BR /&gt;I happened to look at the console of the server and on the screen it has "cron job aborted " message. &lt;BR /&gt;&lt;BR /&gt;Any ideas on what it mean?</description>
      <pubDate>Sun, 19 Dec 2004 21:16:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445848#M207970</guid>
      <dc:creator>Paul_481</dc:creator>
      <dc:date>2004-12-19T21:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab remove</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445849#M207971</link>
      <description>1. Check .profile to determine whether history is set or not&lt;BR /&gt;vi /$USER_HOME_DIRECTORY/.profile&lt;BR /&gt;--- search this line---&lt;BR /&gt;export HISTFILE=/.sh_history&lt;BR /&gt;if it exits, history is set on your system for that user.&lt;BR /&gt;&lt;BR /&gt;2. If user have a history file, check user's history file to know what happend&lt;BR /&gt;# vi /$USER_HOME_DIRECTORY/.sh_history</description>
      <pubDate>Sun, 19 Dec 2004 21:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-remove/m-p/3445849#M207971</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2004-12-19T21:47:33Z</dc:date>
    </item>
  </channel>
</rss>

