home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / minix / 4737 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  3.2 KB

  1. Path: sparky!uunet!rayssd!galaxia!animato!rlcarr
  2. From: rlcarr@animato.network23.com (Rich Carreiro)
  3. Newsgroups: comp.os.minix
  4. Subject: AmigaMINIX problems with accounting files...
  5. Distribution: world
  6. Message-ID: <rlcarr.06th@animato.network23.com>
  7. X-NewsSoftware: GRn 1.16f (10.17.92) by Mike Schwartz & Michael B. Smith
  8. Date: 9 Nov 92 21:05:56 EDT
  9. Organization: The Other Side of Life
  10. Lines: 66
  11.  
  12. Hello.  I am running AmigaMINIX 1.5.10.2 with Mark Newton's serial fixes
  13. (which I doubt are involved here) and am having trouble with "last."
  14.  
  15. First, I'll start with an example of the output I get from last:
  16. ---- begin "bad" last output ----
  17. root      tty3      Mon Nov  9 20:41   still logged in
  18. jtidwell  tty1      Mon Nov  9 20:41 - ??:??  (00:00)
  19. ast       tty2      Mon Nov  9 20:41 - ??:??  (00:00)
  20. rlcarr    tty0      Mon Nov  9 20:41   still logged in
  21. reboot    ~         ??? ??? ?? ??:?? 
  22.  
  23. wtmp begins ??? ??? ?? ??:?? 
  24. ---- end "bad" last output ----
  25.  
  26. As you can see, last cannot tell when /usr/adm/wtmp begins, and also it is
  27. unable to compute logout times and the length of login.
  28. What is more bizarre is that if I do
  29. >/etc/utmp
  30. >/usr/adm/wtmp
  31. to clear out the accounting files, then last will properly report the
  32. beginning time of wtmp, but *as soon as* a user logs in, the "wtmp begins"
  33. line goes screwy, and again, logouts and login lengths are hosed.
  34.  
  35. As I am not terribly familiar with the format of utmp and wtmp files,
  36. I was hoping that either someone has had this problem and has fixed and/or
  37. could take a look at the utmp and wtmp files that were in existence when
  38. the above output was created.  Since they are very small, I am enclosing
  39. them here:
  40. ---- begin uuencoded utmp file ----
  41. begin 777 badutmp
  42. M<FQC87)R  !T='DP='1Y,            !0 !RK^S.$          '1T>3%TX
  43. M='DQ            *  &___-8P          ='1Y,G1T>3(            MX
  44. F  ;__\V3<F]O=     !T='DS='1Y,P           !< !RK^S1< X
  45.  X
  46. end
  47. ---- end uuencoded utmp file ----
  48.  
  49. ---- begin uuencoded wtmp file ----
  50. begin 777 badwtmp
  51. M          !T='DQ='1Y,0           $8 "/__S'T          '1T>3%TX
  52. M='DQ            1@ &___,?0          ='1Y,W1T>3,           !'X
  53. M  C__\R#          !T='DS='1Y,P           $< !O__S(0         X
  54. M '1T>3!T='DP            2P (___,J           ='1Y,'1T>3      X
  55. M      !+  ;__\RH<F5B;V]T  !^?@  ?@                   O__S-T X
  56. M         '1T>3!T='DP            %  (___,W0          ='1Y,'1TX
  57. M>3             4  ;__\S=          !T='DQ='1Y,0           !4 X
  58. M"/__S-T          '1T>3%T='DQ            %0 &___,W0          X
  59. M='1Y,G1T>3(            6  C__\S>          !T='DR='1Y,@      X
  60. M     !8 !O__S-X          '1T>3-T='DS            %P (___,W@  X
  61. M        ='1Y,W1T>3,            7  ;__\S><FQC87)R  !T='DP='1YX
  62. M,            !0 !RK^S.%A<W0      '1T>3)T='DR            %@ 'X
  63. M*O[-"FIT:61W96QL='1Y,71T>3$            5  <J_LT1<F]O=     !TX
  64. M='DS='1Y,P           !< !RK^S1<          '1T>3%T='DQ        X
  65. M    *  (___-8P          ='1Y,71T>3$            H  ;__\UC    X
  66. M      !T='DR='1Y,@           "T "/__S9,          '1T>3)T='DRX
  67. 0            +0 &___-DP  X
  68.  X
  69. end
  70. ---- end of uuencoded wtmp file ----
  71.  
  72. Thanks for any help you can render -- it will be greatly appreciated!
  73.  
  74. -- 
  75. Rich Carreiro                                  Home: (401)841-8514
  76. rlcarr@animato.network23.com
  77. uunet.uu.net!animato!rlcarr
  78.