home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / xenix / sco / 2821 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.1 KB  |  38 lines

  1. Newsgroups: comp.unix.xenix.sco
  2. Path: sparky!uunet!peora!tarpit!bilver!bill
  3. From: bill@bilver.uucp (Bill Vermillion)
  4. Subject: Re: '/etc/wtmp' how to control it's size
  5. Organization: W. J. Vermillion - Winter Park, FL
  6. Date: Sat, 5 Sep 1992 01:36:08 GMT
  7. Message-ID: <1992Sep5.013608.21192@bilver.uucp>
  8. References: <BtyEyJ.HrE@hsi.com>
  9. Lines: 27
  10.  
  11. In article <BtyEyJ.HrE@hsi.com> kanakis@hsi.com (Tony Kanakis) writes:
  12.  
  13. >/etc/wtmp was at 14Mb and filled up the file system.
  14.  
  15. >Is there any mechanism in place that should control the size of this file?
  16.  
  17. If you don't need the file, just rm /etc/wtmp.   If the file doesn't
  18. exist it will not be created.
  19.  
  20. If you need to keep track of logins - I do - just put something in your
  21. cron file like this.
  22.  
  23.  
  24. /bin/cp /etc/wtmp /etc/owtmp; cat /dev/null >/etc/wtmp
  25.  
  26.  
  27. Set that to execute once a week, or month, or whatever time
  28. period you prefer.
  29.  
  30. Don't mv /etc/wtmp to /etc/owtmp because the file is opened for writing
  31. and you will be writing to the old file.
  32.  
  33. -- 
  34. Bill Vermillion - bill@bilver.oau.org  bill.vermillion@oau.org
  35.                 - bill@bilver.uucp 
  36.                 - ..!{peora|ge-dab|tous|tarpit}!bilver!bill
  37.  
  38.