Bitcoin Forum

Other => Beginners & Help => Topic started by: bitfish on May 24, 2013, 05:18:22 PM



Title: Warning for Linux users running bitcoind, litecoind, xxxcoind...
Post by: bitfish on May 24, 2013, 05:18:22 PM
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




Title: Re: Warning for Linux users running bitcoind, litecoind, xxxcoind...
Post by: wormbog on May 24, 2013, 05:22:37 PM
Came for more info about xxxcoin, I am disappoint.


Title: Re: Warning for Linux users running bitcoind, litecoind, xxxcoind...
Post by: allbits on May 24, 2013, 05:56:17 PM
Thanks for the vim/bash tip


Title: Re: Warning for Linux users running bitcoind, litecoind, xxxcoind...
Post by: Soul_Est on May 24, 2013, 06:12:18 PM
Thank you very much for posting that bitfish. I've since added it to my .zshrc file.


Title: Re: Warning for Linux users running bitcoind, litecoind, xxxcoind...
Post by: bitfish on May 24, 2013, 09:13:55 PM
Came for more info about xxxcoin, I am disappoint.

Simply replace xxx with the name of your favorite JunkAltCoin  ;D

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



Title: Re: Warning for Linux users running bitcoind, litecoind, xxxcoind...
Post by: OpenYourEyes on May 24, 2013, 09:21:35 PM
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.


Title: Re: Warning for Linux users running bitcoind, litecoind, xxxcoind...
Post by: bitfish on May 24, 2013, 10:32:10 PM
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  ;D  )

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)