home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6341 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.4 KB  |  35 lines

  1. Nntp-Posting-Host: maud.ifi.uio.no
  2. Newsgroups: comp.os.linux
  3. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!nuug!ifi.uio.no!janl
  4. From: janl@ifi.uio.no (Jan Nicolai Langfeldt)
  5. Subject: Re: problems with who and w
  6. Message-ID: <1992Jul21.223916.18114@ifi.uio.no>
  7. Sender: janl@ifi.uio.no (Nicolai Langfeldt)
  8. Organization: Folkeaksjonen for (tungt) eple cider p} Inf. stua
  9. References:  <1992Jul20.170722.1@mcclb0.med.nyu.edu>
  10. Date: Tue, 21 Jul 1992 22:39:16 GMT
  11. Lines: 21
  12. Originator: janl@maud.ifi.uio.no
  13.  
  14.  
  15. In article <1992Jul20.170722.1@mcclb0.med.nyu.edu>, ramirez@mcclb0.med.nyu.edu writes:
  16. >     I am having a problem with who and w.  It is telling me that there are
  17. > two users when there is only one.  It also says under the tty entry that the
  18. > user is connected to ttyp1.  I've reset the machine and that user is still
  19. > there.  Is there anything that I can do to get it off?
  20.  
  21. This seems to be ripe for adding to the faq.
  22.  
  23. The problem comes from a earlier improper logout (crash?), that left
  24. the /etc/[uw]tmp files unupdated. I haven't seen (can't remember) a
  25. better solutions so I offer this one: login as root, then type 'cd
  26. /etc;', then 'rm [uw]tmp; touch [uw]tmp', then logout. The [wu]tmp
  27. files are now empty, and when you login again 'w' and 'who' will
  28. report the right number of users.
  29.  
  30. Nicolai
  31. -- 
  32. Nicolai Langfeldt, "Bugs made while you wait"             
  33. Internet: janl@ifi.uio.no
  34.  
  35.