Created
February 20, 2012 18:20
-
-
Save fduran/1870460 to your computer and use it in GitHub Desktop.
Linux protecting critical directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# protecting critical linux directories my making them immutable | |
# www.fduran.com | |
chattr +i dir | |
# system dirs to protect: | |
/sbin | |
/bin | |
/usr/sbin | |
/usr/lib | |
# also a tar of /etc/ | |
# remove immutability by 'chattr -i dir' before installing programs or packages (apt-get/yum install etc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment