mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-10 20:55:46 +00:00
Improve security (chmod 0700 bash_history)
This commit is contained in:
parent
77ff017304
commit
b4be4eb99e
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