imthenachoman / How-To-Secure-A-Linux-Server

An evolving how-to guide for securing a Linux server.
Creative Commons Attribution Share Alike 4.0 International
17.56k stars 1.12k forks source link

Disabling bash history on root account? #113

Open thibaultmol opened 10 months ago

thibaultmol commented 10 months ago

Searched the repo and didn't find anything about this, is this something that should be included? https://sunknudsen.com/privacy-guides/how-to-configure-hardened-debian-server#step-3-disable-root-bash-history

Step 3: disable root Bash history

echo "HISTFILESIZE=0" >> ~/.bashrc history -c; history -w source ~/.bashrc

imthenachoman commented 10 months ago

That's a good idea. I'm dealing with some personal issues right now but when I get time I'll go through that guide and see if there is anything else worth including.

hellresistor commented 7 months ago

good point. ;) Add PR ^^ Mr @imthenachoman will aprove (or not ^^)

imthenachoman commented 7 months ago

It's a good idea but it will take some time to format the data in a way to fit into the guide. I'll work on it when I get time.