home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hpuerca.atl.hp.com!der
- From: der@hpuerca.atl.hp.com (Dave Ritchie)
- Subject: Re: wtmp, btmp getting to big !!!
- Message-ID: <BzC0sA.E5M@hpuerca.atl.hp.com>
- Date: Wed, 16 Dec 1992 03:09:45 GMT
- References: <9235110.26727@mulga.cs.mu.OZ.AU>
- Organization: Hewlett-Packard NARC Atlanta
- Lines: 22
-
- In <9235110.26727@mulga.cs.mu.OZ.AU> minh@lis.rch.unimelb.edu.au (Minh Tran) writes:
- > Is there way to delete entries in wtmp, btmp, they are really
- > chewing up space, thanks.
-
- Minh,
- you can trim these files with the following command within single
- user mode:
-
- ksh: >/etc/wtmp
-
- sh: cat /dev/null >/etc/wtmp
-
- The reasons that you want to be in single user mode:
-
- 1) who -r and -b will not show the run level or last boot time correctly
- until the next boot time.
-
- 2) if you have users logged in, their login records in wtmp will be lost
- and this also can confuse who(1).
-
- -- Dave Ritchie
- der@hpuerca.atl.hp.com
-