homepage Welcome to WebmasterWorld Guest from 54.235.36.164
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Strange entry in .bash_history!
Do I need to be concerned?
andreasfriedrich




msg:911454
 4:28 pm on Jan 26, 2003 (gmt 0)

Recently I installed Debian Woody on my testing server. Now I found these entries in the .bash_history files for both root and my normal user account. I never entered those commands. And I would just cd directly to / instead of using this strange cd "`echo -e '\057'`" construct. What is connected to the &6 fd?

PROMPT_COMMAND='pwd>&6;kill -STOP $$' 
cd "`echo -e '\057\150\157\155\145'`"
cd "`echo -e '\057'`"
cd "`echo -e '\057\150\157\155\145\057\141\146'`"
cd "`echo -e '\057'`"

Do I need to be concerned about this? Any advise or information would be appreciated.

TIA Andreas

 

bartek




msg:911455
 5:49 pm on Jan 26, 2003 (gmt 0)

I don't think this is an intrusion. I think mc (Midnight Commander) does this, don't quite remember why... Has something to do with reading your password, checking where your directory is and drawing that cute GUI window.

littleman




msg:911456
 5:50 pm on Jan 26, 2003 (gmt 0)

No insight but:
\057\150\157\155\145\057\141\146 == /home/af

andreasfriedrich




msg:911457
 5:58 pm on Jan 26, 2003 (gmt 0)

Thanks bartek and littleman.

The mc idea sounds reasonable since I have been using it and found the PROMPT_COMMAND string within the mc binary. I was just worried since mc running on Redhat 7.0 never caused these lines to appear in the history file and since the system had been without a firewall for some time (still working on figuring out the subtle differences between Debian and Redhat;)).

Andreas

andreasfriedrich




msg:911458
 10:12 am on Jan 31, 2003 (gmt 0)

It is indeed mcs way of chnging the dirs in mc:

[mail.gnome.org...]

Andreas

andreasfriedrich




msg:911459
 10:34 am on Jan 31, 2003 (gmt 0)

The solution to prevent these entries in the history file (they are really annoying) is to set the HISTIGNORE environment variable to "[ ]*" which is obviously done by Redhat as a default but not by Debian Woody.

Andreas

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved