|
Full Disclosure
mailing list archives
Re: encrypt the bash history
From: Daniël W. Crompton <daniel.crompton () gmail com>
Date: Mon, 7 Feb 2011 12:52:50 +0100
On 4 February 2011 20:06, Zerial. <fernando () zerial org> wrote:
Hi,
what is the best way to encrypt the bash_history file?
I try using crypt/decrypt with GPG when login/logout. It works, but not
safe enough.
what I did for a project I was working on was I create a LD_PRELOAD library
which overloaded the i/o operations and used gz and bz2. This could easily
be adapted to overload with encryption library functions rather than
compression libraries. You can also use this to keep the bash history in
memory using a shared memory location.
As said in the rest of the thread this won't completely stop root, but it
does make it more difficult.
D.
blaze your trail
--
Daniël W. Crompton <daniel.crompton () gmail com>
<http://specialbrands.net/>
<http://specialbrands.net/>
http://specialbrands.net/
<http://twitter.com/webhat>
<http://www.facebook.com/webhat><http://plancast.com/webhat><http://www.linkedin.com/in/redhat>
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
By Date
By Thread
Current thread:
Re: encrypt the bash history Daniël W . Crompton (Feb 07)
|