Bitcoin Forum
May 04, 2024, 05:31:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Warning for Linux users running bitcoind, litecoind, xxxcoind...  (Read 1292 times)
bitfish (OP)
Full Member
***
Offline Offline

Activity: 174
Merit: 100

A Coin A Day Keeps The Cold Away.


View Profile
May 24, 2013, 05:18:22 PM
 #1

If you are running bitcoind, litecoind or any other coin daemon from the command line,
you better check your .bash_history file (and .viminfo file, if you are using vim editor)
for wallet password leaks.

Your wallet encryption isn't worth a dime if your wallet password is stored in one of those files above.

Put the line

HISTIGNORE="*pass*"

into your .bashrc file preventing bash shell from remembering you wallet password and other password strings.

Enjoy!
bitfish


Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
wormbog
Hero Member
*****
Offline Offline

Activity: 561
Merit: 500



View Profile
May 24, 2013, 05:22:37 PM
 #2

Came for more info about xxxcoin, I am disappoint.
allbits
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
May 24, 2013, 05:56:17 PM
 #3

Thanks for the vim/bash tip
Soul_Est
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 24, 2013, 06:12:18 PM
 #4

Thank you very much for posting that bitfish. I've since added it to my .zshrc file.
bitfish (OP)
Full Member
***
Offline Offline

Activity: 174
Merit: 100

A Coin A Day Keeps The Cold Away.


View Profile
May 24, 2013, 09:13:55 PM
 #5

Came for more info about xxxcoin, I am disappoint.

Simply replace xxx with the name of your favorite JunkAltCoin  Grin

Since these coins are springing up nowadays faster than mushrooms after a heavy shower,
it's really hard keeping up.

OpenYourEyes
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
May 24, 2013, 09:21:35 PM
 #6

Good spot.

You can also add: export HISTCONTROL=ignorespace to your .bashrc
Now if you type a command with a space in front of it, it won't get saved to your history file.

takemybitcoins.com: Spend a few seconds entering a merchants email address to encourage them to accept Bitcoin
PGP key | Bitmessage: BM-GuCA7CkQ8ojXSFGrREpMDuWgv495FUX7
bitfish (OP)
Full Member
***
Offline Offline

Activity: 174
Merit: 100

A Coin A Day Keeps The Cold Away.


View Profile
May 24, 2013, 10:32:10 PM
Last edit: January 25, 2014, 06:57:07 PM by bitfish
 #7

Thank you very much for posting that bitfish. I've since added it to my .zshrc file.

And check you backups (I'm sure you have a backup  Grin  )

Go to the root dir of your backup drive and do a:
Code:
#find ./ -name .bash_history -exec rm {} \;  
#find ./ -name  .viminfo -exec rm {} \;

or even better:
Code:
#find ./ -name .bash_history -exec wipe -f {} \;
#find ./ -name .viminfo -exec wipe -f {} \;

(You need wipe installed)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!