Linux Centos 5.4 BTMP file size

Tags
centos, discussions, logs, var log

 
Thread Tools Search this Thread
# 1  
Old 08-11-2010
Linux Centos 5.4 BTMP file size

Dear fellows,

I have Centos 5.4 linux with DNS server, all logs are normal, in my /var/log/ btmp files is getting larger day by day.

What is this btmp file for?
How can i reduce the file siez or control file size.

Waiting.
MAZ
# 2  
Old 08-11-2010
It's the log file for bad login attempts (see man lastb). If it's growing fast you either have a really dumb user somewhere, or a forgotten script trying old credentials, or someone is trying to own your box. You can have it auto-cleaned using logrotate, or (if you don't need the history) truncate it using
Code:
: > /var/log/btmp


|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Processing btmp with PHP for iptables Neo Security 1 3 Weeks Ago 05:06 AM
Good way to check firewall port on Linux centos 7 mohtashims Shell Programming and Scripting 1 09-06-2017 05:48 PM
How to reduce the LVM Size in RHEL/Centos 7 ? kalpeer Red Hat 3 08-25-2016 09:38 AM
File size limitation in the EST 2012 x86_64 GNU/Linux siva3492 Linux 10 08-06-2015 02:01 AM
/var/log/btmp size 2.2Gb daily feroccimx Fedora 6 07-03-2015 02:24 AM
Compare size of one file with other file in Linux hemantakhandare Shell Programming and Scripting 4 03-19-2015 02:11 PM
File size limitation in Linux siva3492 Linux 11 01-06-2015 08:22 AM
How to schedule a shell script in Linux centos? Palak Sharma Shell Programming and Scripting 0 04-18-2014 02:52 AM
Hack a centos Linux box chuikingman Red Hat 1 04-14-2014 03:50 AM
Linux centos, can't connect whois.tucows.com postcd IP Networking 5 12-09-2013 09:26 AM
Websockets proxy on CentOS Linux? glev2005 Emergency UNIX and Linux Support 3 07-23-2013 01:36 AM
How to Autorun a program in Linux(Centos) crazydude80 UNIX for Dummies Questions & Answers 11 08-22-2012 06:22 AM
Authentication Failed in Linux centos coolboys Red Hat 0 04-17-2012 02:34 PM
sort command in centos linux os jpachar Linux 1 02-22-2012 05:52 AM
Is there any way to find the compressed size of a file without compressing it in linux Kesavan Shell Programming and Scripting 2 06-03-2011 03:50 PM