1834457 Members
2635 Online
110067 Solutions
New Discussion

Stop logging btmp

 
SOLVED
Go to solution
Wantit Tangrugsasut
Occasional Contributor

Stop logging btmp

Hi,

Does anyone know how to stop logging in btmp?
My boss want this file to stop logging

Thank You
3 REPLIES 3
Lasse Knudsen
Esteemed Contributor
Solution

Re: Stop logging btmp

Remove /var/adm/btmp

/Allan
In a world without fences - who needs Gates ?
A. Clay Stephenson
Acclaimed Contributor

Re: Stop logging btmp

Remove /var/adm/btmp; if it's not there not logging occurs. I would suggest that for security reasons you keep the file but periodically rename and compress it then
cp /dev/null to /var/adm/btmp to create a new file.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Stop logging btmp

Hi:

Simply remove the file (/var/adm/btmp). In the absence of a file, logging of "bad" logins does not occur. The same is true for logging "good" results in /var/adm/wtmp.

..JRF...