I would like to prevent .bash_history being
created for root.
And when "sudo" invoked by user.
Have tried:
export HISTCONTROL=ignoreboth
but nothing seems to be added to .bashrc
this has come abote as I seem to have
/tmp/.bash_history
which may not be good :(
--
Regards,
Frank Murphy
UTF_8 Encoded
Friend of Fedora
I would like to prevent .bash_history being
created for root.
And when "sudo" invoked by user.
Have tried:
export HISTCONTROL=ignoreboth
but nothing seems to be added to .bashrc
this has come abote as I seem to have
/tmp/.bash_history
which may not be good :(
You can add "[ -f $HISTFILE ] && rm $HISTFILE" to your .bashrc.
Or just the rm
command if you're more trusting than I...
--
Bill Davidsen <davidsen(a)tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot