Search Text         
Search Tips?
Search By   And   Or   Boolean   Exact Match   TA #
Search In   Whole Doc   Keywords Sort By  
Product   Sub Product  

View Technical Articles (sorted by Product) New/Updated in the last:    7 days      14 days      30 days             
TA # Date Created Date Updated Resolved Issue?   Printer Friendly Version of This TA   Print Article
  E-mail This TA   E-mail Article
104857 10/18/1995 06:27 PM 10/24/2001 12:32 PM
Yes No
Log in and get "no utmp entry. You must log in from lowest level -sh".
Keywords
no utmp utmpx wtmp wtmpx entry must exec login from lowest level shell -sh unix openserver oses v5 5.0.0 log in osr 5.0.2 5.0.4 5.0.5 5.0.6 user root multiuser password error prompt sh files corrupt log zero length clear touch fwtmp
Release
SCO OpenServer Enterprise System Release 5.0.0, 5.0.2, 5.0.4, 5.0.5
SCO OpenServer Host System Release 5.0.0, 5.0.2, 5.0.4, 5.0.5
SCO OpenServer Desktop System Release 5.0.0, 5.0.2, 5.0.4, 5.0.5

Problem
          I am trying to log in as a user, or as root in multiuser mode.
          After entering the password, this error message is displayed
          age and the system will not return a prompt:

                No utmp entry.  You must log in from lowest level -sh

CAUSE:
          One or more of the files /etc/utmp, /etc/wtmp, and /etc/utmpx
          has been corrupted or truncated.  Note that, in particular,
          a successful login on the console or a serial terminal depends
          upon the presence of valid content in one or more of these files.
          It has been observed that some system adminstrators wrongly zero out
          these files upon system startup in order to "clean" them. Thus,
          if some sort of corruption is suspected and you wish to zero out
          these files, rebooting the system is necessary in order to restore
          these files after zeroing them.


Solution
          These files are log files. They can become zero length
          without affecting the system, as long as you reboot the system
          after truncating the files.  Perform these steps:

          1. Bring the system into System Maintenance mode.

          2. Make copies of the files /etc/utmp, /etc/utmpx, /etc/wtmp,
             and /etc/wtmpx before proceeding with the next step.

          3. Delete the contents of these files by executing the
          following commands:

              # > /etc/utmp
              # > /etc/wtmp
              # > /etc/utmpx
              # > /etc/wtmpx

          4. Shutdown the system:

              # shutdown -y -g0

NOTE:
          If desired, you can see what is in these files by using the
          fwtmp(AMD) command (located in /usr/lib/acct).  It is possible
          to save the output to a file, and after editing save back with
          the "fwtmp -ic" command.

Back to Search ResultsBack to Search Results