home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14116 < prev    next >
Encoding:
Text File  |  1992-12-15  |  996 b   |  33 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hpuerca.atl.hp.com!der
  3. From: der@hpuerca.atl.hp.com (Dave Ritchie)
  4. Subject: Re: wtmp, btmp getting to big !!!
  5. Message-ID: <BzC0sA.E5M@hpuerca.atl.hp.com>
  6. Date: Wed, 16 Dec 1992 03:09:45 GMT
  7. References: <9235110.26727@mulga.cs.mu.OZ.AU>
  8. Organization: Hewlett-Packard NARC Atlanta
  9. Lines: 22
  10.  
  11. In <9235110.26727@mulga.cs.mu.OZ.AU> minh@lis.rch.unimelb.edu.au (Minh Tran) writes:
  12. >    Is there way to delete entries in wtmp, btmp, they are really
  13. >    chewing up space, thanks.
  14.  
  15. Minh,
  16.   you can trim these files with the following command within single 
  17. user mode:
  18.  
  19.   ksh:   >/etc/wtmp
  20.  
  21.   sh:    cat /dev/null >/etc/wtmp
  22.  
  23. The reasons that you want to be in single user mode:
  24.  
  25. 1) who -r and -b will not show the run level or last boot time correctly
  26. until the next boot time.
  27.  
  28. 2) if you have users logged in, their login records in wtmp will be lost
  29. and this also can confuse who(1).
  30.  
  31. -- Dave Ritchie
  32. der@hpuerca.atl.hp.com
  33.