Re: [Leaf-user] very large /var/log/wtmp

2001-12-07 Thread Michael D. Schleif


Richard Burt wrote:
 
 OK, I took a look at the man pages for last.  With no arguments, it should
 tell me all logins from the wtmp file.  Here is what I get:
 
 # last
 USER TTY PID TIMEON  FROM
 reboot   ~   0   48452.2.19
 
 Figuring it has to do with logins, I also took a look at auth.log (also
 pretty big).  I think the answer is here, but I don't know what to do to fix
 it.  It is full of these.
 
 Dec 7 06:45:12 firewall /sbin/getty[11929]: /dev/tty1: cannot open as
 standard input: Operation not supported by device
 Dec 7 06:45:13 firewall /sbin/getty[11930]: /dev/tty2: cannot open as
 standard input: Operation not supported by device

This is your problem.

I've seen this on a SCO box, where /etc/inttab was grossly misconfigured
and the experiences a 10 GB wtmp file !!!


 My box does not have any serial ports, so is there something I can do to
 stop it from trying to open them?
 Thanks,
 Rich
 
 Message: 5
 Date: Thu,  6 Dec 2001 23:10:32 -0600
 From: David Douthitt [EMAIL PROTECTED]
 Subject: Re: [Leaf-user] very large /var/log/wtmp
 To: LEAF User Mailing List [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 
 On 12/6/01 at 5:38 PM, Richard Burt [EMAIL PROTECTED] wrote:
 
 I saw a posting a few weeks ago of someone who was
 having this problem.  I don't ever remember seeing an
 answer.  This is a new clean Dachstein 1.01
 installation.  Been up for just shy of 3 days.
 
 As you can see my wtmp file is 7.5 MB.  Anyone have
 any thoughts?  Or what more info should I provide. Thanks.
 
 wtmp is used by the last command (that is -- probaby -- /bin/last);
 try it.  You might want to check the help for a way to limit the
 number of entries to list (I don't remember what it was, but it can be
 done).
 
 Then you can see what is filling your wtmp file.

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .

___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user



[Leaf-user] very large /var/log/wtmp

2001-12-06 Thread Richard Burt

I saw a posting a few weeks ago of someone who was
having this problem.  I don't ever remember seeing an
answer.  This is a new clean Dachstein 1.01
installation.  Been up for just shy of 3 days.  Here
is an ls of my /var/log directory.

firewall: -root-
# ls -l
-rw-r-1 root adm777216 Dec  6
07:07 auth.log
-rw-r-1 root adm  1024 Dec  6
07:21 daemon.log
-rw-r-1 root adm 11264 Dec  5
12:38 daemon.log.0
-rw-r-1 root adm 0 Dec  6
06:42 daemon.log.1.gz
-rw-r-1 root adm  1119 Dec  5
06:42 daemon.log.2.gz
-rw-r-1 root adm 0 Dec  6
06:42 debug
-rw-r-1 root adm 0 Dec  5
06:42 debug.0
-rw-r-1 root adm20 Dec  6
06:42 debug.1.gz
-rw-r-1 root adm   161 Dec  5
06:42 debug.2.gz
-rw-r-1 root adm   757 Dec  6
13:18 kern.log
-rw-r-1 root adm 0 Dec  5
06:42 kern.log.0
-rw-r-1 root adm   176 Dec  6
06:42 kern.log.1.gz
-rw-r-1 root adm  2192 Dec  5
06:42 kern.log.2.gz
-rw-r-1 root root0 Dec  6
20:24 lastlog
-rw-r-1 root adm   852 Dec  6
16:36 messages
-rw-r-1 root adm   239 Dec  6
04:36 messages.0
-rw-r-1 root adm   243 Dec  6
06:42 messages.1.gz
-rw-r-1 root adm  2135 Dec  5
06:42 messages.2.gz
-rw-r-1 root adm 0 Dec  6
06:42 ppp.log
-rw-r-1 root adm 0 Dec  5
06:42 ppp.log.0
-rw-r-1 root adm20 Dec  6
06:42 ppp.log.1.gz
-rw-r-1 root adm20 Dec  5
06:42 ppp.log.2.gz
-rw-r-1 root adm 0 Dec  6
06:42 pslave.log
-rw-r-1 root adm 0 Dec  5
06:42 pslave.log.0
-rw-r-1 root adm20 Dec  6
06:42 pslave.log.1.gz
-rw-r-1 root adm20 Dec  5
06:42 pslave.log.2.gz
-rw-r-1 root adm 0 Nov 13 
1997 setuid.changes
-rw-r-1 root adm  2048 Dec  6
07:30 syslog
-rw-r-1 root adm 13312 Dec  5
12:38 syslog.0
-rw-r-1 root adm  3542 Dec  6
06:42 syslog.1.gz
-rw-r-1 root adm  3587 Dec  5
06:42 syslog.2.gz
-rw-r-1 root adm 0 Dec  6
06:42 user.log
-rw-r-1 root adm 0 Dec  5
06:42 user.log.0
-rw-r-1 root adm20 Dec  6
06:42 user.log.1.gz
-rw-r-1 root adm20 Dec  5
06:42 user.log.2.gz
-rw-r-1 root root  7438080 Dec  6
20:30 wtmp

As you can see my wtmp file is 7.5 MB.  Anyone have
any thoughts?  Or what more info should I provide. 
Thanks.
Rich


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user



Re: [Leaf-user] very large /var/log/wtmp

2001-12-06 Thread David Douthitt

On 12/6/01 at 5:38 PM, Richard Burt [EMAIL PROTECTED] wrote:

 I saw a posting a few weeks ago of someone who was
 having this problem.  I don't ever remember seeing an
 answer.  This is a new clean Dachstein 1.01
 installation.  Been up for just shy of 3 days.

 As you can see my wtmp file is 7.5 MB.  Anyone have
 any thoughts?  Or what more info should I provide. 
 Thanks.

wtmp is used by the last command (that is -- probaby -- /bin/last);
try it.  You might want to check the help for a way to limit the
number of entries to list (I don't remember what it was, but it can be
done).

Then you can see what is filling your wtmp file.
--
David Douthitt
UNIX Systems Administrator
HP-UX, Unixware, Linux
[EMAIL PROTECTED]

___
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user