Improve security (chmod 0700 bash_history)

This commit is contained in:
Doncho N. Gunchev 2020-10-17 13:23:08 +03:00
parent b2ac0055b0
commit d1d115a905

View file

@ -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