mirror of
https://github.com/gunchev/home_bin.git
synced 2025-11-20 12:15:46 +00:00
Improve security (chmod 0700 bash_history)
This commit is contained in:
parent
b2ac0055b0
commit
d1d115a905
1 changed files with 7 additions and 0 deletions
|
|
@ -161,7 +161,14 @@ ${PROMPT_COMMAND}"
|
|||
export HISTIGNORE='history:history *'
|
||||
}
|
||||
|
||||
# Secure bash history
|
||||
if [ ! -d "$HOME/bash_history" ]; then
|
||||
mkdir "$HOME/bash_history"
|
||||
chmod 0700 "$HOME/bash_history"
|
||||
fi
|
||||
|
||||
twtty
|
||||
|
||||
unset twtty
|
||||
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue