[tor-bugs] #8697 [Tor bundles/installation]: .bash_history contains traces of TBB use (Debian Linux)
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Apr 13 08:00:41 UTC 2013
#8697: .bash_history contains traces of TBB use (Debian Linux)
--------------------------------------+-------------------------------------
Reporter: runa | Owner: erinn
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor bundles/installation | Version:
Keywords: | Parent:
Points: | Actualpoints:
--------------------------------------+-------------------------------------
Comment(by pabs):
In the advice where you tell people to run it from the command-line, you
can tell them to include a space before the command, then bash will not
log it because the default bash configuration says to ignoreboth, which
means commands starting with a space and duplicate commands.
Another option would be HISTIGNORE, but that probably would leave more
traces since they would need to add it to a config file.
{{{
user at host:~$ echo bad command
bad command
user at host:~$ echo good command
good command
user at host:~$ exec bash -i
user at host:~$ tail .bash_history
echo good command
exec bash -i
user at host:~$ grep -B2 ignore /etc/skel/.bashrc
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
}}}
From the documentation:
HISTCONTROL
A colon-separated list of values controlling how commands are saved
on the history list. If the list of values includes ignorespace,
lines which begin with a space character are not saved in the history
list. A value of ignoredups causes lines matching the previous history
entry to not be saved. A value of ignoreboth is shorthand for ignorespace
and ignoredups.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8697#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list