home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.xenix.sco
- Path: sparky!uunet!peora!tarpit!bilver!bill
- From: bill@bilver.uucp (Bill Vermillion)
- Subject: Re: '/etc/wtmp' how to control it's size
- Organization: W. J. Vermillion - Winter Park, FL
- Date: Sat, 5 Sep 1992 01:36:08 GMT
- Message-ID: <1992Sep5.013608.21192@bilver.uucp>
- References: <BtyEyJ.HrE@hsi.com>
- Lines: 27
-
- In article <BtyEyJ.HrE@hsi.com> kanakis@hsi.com (Tony Kanakis) writes:
-
- >/etc/wtmp was at 14Mb and filled up the file system.
-
- >Is there any mechanism in place that should control the size of this file?
-
- If you don't need the file, just rm /etc/wtmp. If the file doesn't
- exist it will not be created.
-
- If you need to keep track of logins - I do - just put something in your
- cron file like this.
-
-
- /bin/cp /etc/wtmp /etc/owtmp; cat /dev/null >/etc/wtmp
-
-
- Set that to execute once a week, or month, or whatever time
- period you prefer.
-
- Don't mv /etc/wtmp to /etc/owtmp because the file is opened for writing
- and you will be writing to the old file.
-
- --
- Bill Vermillion - bill@bilver.oau.org bill.vermillion@oau.org
- - bill@bilver.uucp
- - ..!{peora|ge-dab|tous|tarpit}!bilver!bill
-
-