Linux Centos 5.4 BTMP file size


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Linux Centos 5.4 BTMP file size
# 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

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Cybersecurity

Processing btmp with PHP for iptables

On linux, lastb is the same as last, except that by default lastb shows a log of the /var/log/btmp file, which contains all the bad login attempts. This file grows large quickly (sometimes over 100K entries or more in a day) with the constant brute force login attempts, especially by IP... (1 Reply)
Discussion started by: Neo
1 Replies

2. Red Hat

How to reduce the LVM Size in RHEL/Centos 7 ?

Hi All, I have one logical volume with size as 900G and it is mounted as xfs file system. Now I want to reduce this partition to 500G. So I followed the below steps. unmount the mount point /home Reduced the volume using the command Now I remounted the partition. But the problem... (3 Replies)
Discussion started by: kalpeer
3 Replies

3. Linux

File size limitation in the EST 2012 x86_64 GNU/Linux

Hello Friends, I tried to take tar backup in my server, but it ended with an error. It said that: /home/back/pallava_backup/fbackup_backup/stape_config /home/back/romam_new.tar.gz tar: /home/backup/back.tar.gz: Cannot write: No space left on device tar: Error is not recoverable: exiting... (10 Replies)
Discussion started by: siva3492
10 Replies

4. Fedora

/var/log/btmp size 2.2Gb daily

Hello, One Fedora server is facing the issue that daily /var/log/btmp grows to 2.2Gb or more. I need your help to determine the cause and isolate it. Thank you! (6 Replies)
Discussion started by: feroccimx
6 Replies

5. Shell Programming and Scripting

Compare size of one file with other file in Linux

Hi, I have 32 files for which I want to check size of each file withe other file and if size is same then some action. Any suggestion to write such script. Logic: have list of 32 files using loop first compare size of one file with remaining 31 , do same iteration for each file with... (4 Replies)
Discussion started by: hemantakhandare
4 Replies

6. Linux

File size limitation in Linux

Hi friends, I tried to take a backup of my PC using tar command. But it ended with an error tar: /home/backup/back.tar.gz: Cannot write: No space left on device tar: Error is not recoverable: exiting now But i checked the disk space and there is enough space is available. ]# df Filesystem... (11 Replies)
Discussion started by: siva3492
11 Replies

7. Red Hat

Hack a centos Linux box

HI, I have a Centos linux box and there is interface connect to internet. I stop the iptables in this box . After a few day , I find the linux box have been hacked and install some perl script into the box . Could anyone tell me how the hacker can login into the centos box without knowing... (1 Reply)
Discussion started by: chuikingman
1 Replies

8. Emergency UNIX and Linux Support

Websockets proxy on CentOS Linux?

I need to setup a proxy that will sit in front of a websockets server and proxy websockets communication both to and from the server. There will only be one specific client trying to access this server using the websockets protocol. We can configure the proxy settings for port and IP on the... (3 Replies)
Discussion started by: glev2005
3 Replies

9. Red Hat

Authentication Failed in Linux centos

Hi everyone ... ( Linux Cent OS ) i cant login as root user in my lab machine ... i did give correct root and root passwd ..but it showing Authentication Failed ... plz help me (0 Replies)
Discussion started by: coolboys
0 Replies

10. Shell Programming and Scripting

Is there any way to find the compressed size of a file without compressing it in linux

i need to backup a directory from one partition to another and and compress that directory after backing up, so i need to predict the compressed size of the directory with out actually compressing it, to check whether the space is available in the destination partition to accommodate the zipped... (2 Replies)
Discussion started by: Kesavan
2 Replies
Login or Register to Ask a Question