View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-02-2005, 11:57 AM   #1
LQ Newbie
Registered: Jan 2003
Distribution: SuSE 8.0 Pro
Posts: 16

Rep: Reputation: 0
Zero-length bash .history file!

Routinely running chkrootkit yesterday, I noted a warning to the effect that root's bash .history file was found to be zero-length. Since I'm about as sure as I can be that I didn't do that myself, I'm wondering if this means that the system has been cracked. Are there other tests I can run to double-check, somehow?

Thanks in advance,

P.S. I didn't find other threads about this in LQ.
Old 12-03-2005, 09:09 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,670

Rep: Reputation: 229Reputation: 229Reputation: 229
"Are there other tests I can run to double-check, somehow?"

In SuSE the default history file size is 1000.
You can log in as root and use these commands to verify that bash's .history is in fact zero length:


Steve Stites

Last edited by jailbait; 12-03-2005 at 09:12 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash scripting: column-ize file of varying length strings Quantum0726 Programming 4 08-13-2005 07:19 PM
Bash history file jinksys Linux - Software 2 07-30-2005 04:58 PM
NOT escaping bash history ivanatora Linux - General 3 06-07-2005 02:17 PM
bash history slowly Linux - General 2 11-12-2004 12:35 PM
Bash History ukndoit Linux - Security 2 10-16-2003 10:02 AM

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration