LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-02-2005, 10:57 AM   #1
revmyo
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,
Denis

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

Rep: Reputation: 180Reputation: 180
"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:

echo $HISTFILESIZE
echo $HISTSIZE

----------------------
Steve Stites

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


Reply


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 06:19 PM
Bash history file jinksys Linux - Software 2 07-30-2005 03:58 PM
NOT escaping bash history ivanatora Linux - General 3 06-07-2005 01:17 PM
bash history slowly Linux - General 2 11-12-2004 11:35 AM
Bash History ukndoit Linux - Security 2 10-16-2003 09:02 AM


All times are GMT -5. The time now is 02:01 AM.

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