Upgraded libraries - utmp and wtmp not found

Upgraded libraries - utmp and wtmp not found

Post by Bill Wo » Wed, 02 Aug 1995 04:00:00



Some background information:

I originally installed Linux from the Slackware PRO v2.1 CD ROM package, which
contained Linux kernel v1.1.59.  

I recently upgraded the kernel to v1.2.9, and nothing else.  

The other day, I was trying to compile the newest version of DIP, and LIME,
and they both made mention that I needed a newer version of the libraries.  

I ftped version libc-4.7.2.bin.tar.gz from sunsite.  I installed them
according to the directions as found in Matt Welsh's book "Running Linux".

Everything appears to be working properly, and DIP and LIME is working as
well.  Now however whenever anyone dials in to the system they receive the
following message on their screen before the login prompt:

A_setutent: Can't open utmp file: No such file or directory
A_setutent: Can't open utmp file: No such file or directory

The files utmp and wtmp clearly reside in both /etc and /var/adm directories.
This problem only appeared to happen once the libraries have been updated.
Everything else on the system is operating correctly.    I did run the
ldconfig program as well, and also rebooted the system.

Due to the utmp file problem 'finger' always shows no one is logged in.  
Clearly it's wrong.  :-)

Any ideas as to what I did wrong, or how to clear up this problem?  

Thank you in advance for any help you can offer!

Takecare,

 
 
 

Upgraded libraries - utmp and wtmp not found

Post by Jared Robert » Wed, 02 Aug 1995 04:00:00


try creating utmp/wtmp in /var/run...
--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
|  Jared Roberts                      |  Ultima Dragons: Internet Chapter     |



+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

 
 
 

Upgraded libraries - utmp and wtmp not found

Post by Kirk B. Ivers » Wed, 02 Aug 1995 04:00:00


[...]
Quote:>A_setutent: Can't open utmp file: No such file or directory
>A_setutent: Can't open utmp file: No such file or directory

[...]

 I came across similar messages while running xterm after getting a newer
version of libc.  I noticed that the library referenced /var/run/utmp, so
I created the appropriate link   (ln -s /var/etc /var/run)  and the problem
went away.

 Perhaps someone can fill us in on the nature of the "run" directory, and
what a proper fix would be?

--

 
 
 

Upgraded libraries - utmp and wtmp not found

Post by Michael C Du » Fri, 04 Aug 1995 04:00:00




: [...]
: >A_setutent: Can't open utmp file: No such file or directory
: >A_setutent: Can't open utmp file: No such file or directory
: [...]

:  I came across similar messages while running xterm after getting a newer
: version of libc.  I noticed that the library referenced /var/run/utmp, so
: I created the appropriate link   (ln -s /var/etc /var/run)  and the problem
: went away.

:  Perhaps someone can fill us in on the nature of the "run" directory, and
: what a proper fix would be?

        I know that /usr/include/paths.h defines the paths for both utmp
and wtmp.  Where the definition is made, there is a if-else statement,
either assigns PATH_UTMP = /var/adm/utmp or PATH_UTMP = /var/run/utmp.  
I'm not sure what makes the difference (I'm not a programmer :) ).

: --

--
------------------------------------------------------------------------------
                                                Mike dunn


        Check me out at http://wwwpub.utdallas.edu/~dunn4614

 
 
 

1. upgrading RH4.2->RH5.1, utmp/wtmp problem


RH 4.2 uses libc 5, RH 5.x (and future versions) use glibc.  glibc has a
different format for those files than libc 5 did.  I would imagine that you
could simply "null" (cp /dev/null <file>) the files utmp and wtmp (and
probably lastlog as well).

If you then re-login, things should work.

--
To reply via mail, please remove the obvious from the email address.

2. DEC Alpha

3. location of utmp wtmp in utmp.h

4. kernel configuration tools.

5. wtmp/utmp not registering login

6. Linux newbie!

7. utmp/wtmp: Why some, not others?

8. K6 and Linux; will it work?

9. utmp: finding binaries that corrupt utmp

10. command not found after RH 7.2 kernel upgrade via "Upgrade Agent"

11. Upgrade to Redhat 6.2 fails: upgrade.log not found

12. : utmp not found with new libs

13. utmp not found question?