<?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: utmp corruption? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673116#M916643</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You will need to drop to single-user mode, null the file and reboot.&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /etc/wtmp&lt;BR /&gt;&lt;BR /&gt;If you are running 11.0 make sure you have patch PHNE_24762 installed.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 28 Feb 2002 01:07:43 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-02-28T01:07:43Z</dc:date>
    <item>
      <title>utmp corruption?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673113#M916640</link>
      <description>It appears that my /etc/utmp file is corrupted.  The who command shows users being logged in, who are actually not logged in.&lt;BR /&gt;&lt;BR /&gt;Also, when trying to change the password command, it fails with:&lt;BR /&gt;&lt;BR /&gt;$ passwd&lt;BR /&gt;Usage: passwd [ -F file ] [ name ]&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;In addition, the perl "getlogin" function (which utilizes the getlogin() in C/Unix) also fails.&lt;BR /&gt;&lt;BR /&gt;The commonality is the /etc/utmp file.&lt;BR /&gt;&lt;BR /&gt;Is there a way to reset the file?  Could it be something else?</description>
      <pubDate>Thu, 28 Feb 2002 00:55:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673113#M916640</guid>
      <dc:creator>Nishan Sandhar</dc:creator>
      <dc:date>2002-02-28T00:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: utmp corruption?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673114#M916641</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would just zero that file.. that should fix the problem&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /etc/utmp&lt;BR /&gt;&lt;BR /&gt;There are a lot threads out there in this forum which discusses this... try a search on utmp..&lt;BR /&gt;&lt;BR /&gt;-Shabu</description>
      <pubDate>Thu, 28 Feb 2002 01:01:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673114#M916641</guid>
      <dc:creator>SHABU KHAN</dc:creator>
      <dc:date>2002-02-28T01:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: utmp corruption?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673115#M916642</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Once the utmp file has become corrupted I don't&lt;BR /&gt;believe that there is a way to actually fix it.&lt;BR /&gt;&lt;BR /&gt;# rm /etc/utmp&lt;BR /&gt;# touch /etc/utmp&lt;BR /&gt;&lt;BR /&gt;When using the passwd command you must specify&lt;BR /&gt;a user account e.g.&lt;BR /&gt;&lt;BR /&gt;# passwd fred (or a force change)&lt;BR /&gt;# passwd -f fred&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 28 Feb 2002 01:07:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673115#M916642</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-02-28T01:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: utmp corruption?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673116#M916643</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You will need to drop to single-user mode, null the file and reboot.&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /etc/wtmp&lt;BR /&gt;&lt;BR /&gt;If you are running 11.0 make sure you have patch PHNE_24762 installed.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 28 Feb 2002 01:07:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673116#M916643</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-02-28T01:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: utmp corruption?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673117#M916644</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;//quote//&lt;BR /&gt;&lt;BR /&gt;The utmp file can be manipulated with the fwtmp command. &lt;BR /&gt;&lt;BR /&gt;1.check the last modification time of the /etc/utmp file &lt;BR /&gt;ls -l /etc/utmp &lt;BR /&gt;-rw-r--r-- 1 root root 1620 Jun 28 09:22 /etc/utmp &lt;BR /&gt;&lt;BR /&gt;2.convert the binary /etc/utmp file to ascii : &lt;BR /&gt;/usr/sbin/acct/fwtmp /tmp/utmp.ascii &lt;BR /&gt;&lt;BR /&gt;3.edit the /tmp/utmp.ascii file to remove the old entries &lt;BR /&gt;Note : the entries are sorted by date, simply use the login time reported &lt;BR /&gt;by &lt;BR /&gt;who(1) to find the lines to remove. &lt;BR /&gt;&lt;BR /&gt;4.convert the file back to binary format : &lt;BR /&gt;/usr/sbin/acct/fwtmp -ic /tmp/utmp.binary &lt;BR /&gt;&lt;BR /&gt;5.verify that all unwanted entries have been removed from the new file : &lt;BR /&gt;who /tmp/utmp.binary &lt;BR /&gt;&lt;BR /&gt;6.verify that the /etc/utmp file has not been modified since the beginning of &lt;BR /&gt;this procedure : &lt;BR /&gt;ls -l /etc/utmp &lt;BR /&gt;-rw-r--r-- 1 root root 1620 Jun 28 09:22 /etc/utmp &lt;BR /&gt;If the file has been updated do all the steps again. &lt;BR /&gt;&lt;BR /&gt;7.replace the existing /etc/utmp file with the new one : &lt;BR /&gt;mv /tmp/utmp.binary /etc/utmp &lt;BR /&gt;&lt;BR /&gt;8.verify that the file still has the same ownership and permissions : &lt;BR /&gt;ls -l /etc/utmp &lt;BR /&gt;-rw-r--r-- 1 root root 1600 Jun 28 09:30 /etc/utmp &lt;BR /&gt;&lt;BR /&gt;The who command will now report the correct information. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//quote//&lt;BR /&gt;Cheers&lt;BR /&gt;Animesh&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 01:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673117#M916644</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-02-28T01:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: utmp corruption?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673118#M916645</link>
      <description>There is also a programme called utmp_fix which you can run on an id to remove all utmp entries , i have attached the binary to this reply&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 01:11:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/utmp-corruption/m-p/2673118#M916645</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-02-28T01:11:45Z</dc:date>
    </item>
  </channel>
</rss>

