Created
March 10, 2014 22:04
-
-
Save DavidMah/9475427 to your computer and use it in GitHub Desktop.
immutability of directories
This file contains hidden or 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
root@willbell:~# ls | |
root@willbell:~# mkdir lol | |
root@willbell:~# cd lol/ | |
root@willbell:~/lol# ls | |
root@willbell:~/lol# touch banana | |
root@willbell:~/lol# touch frog | |
root@willbell:~/lol# chattr +i banana | |
root@willbell:~/lol# echo asdasdasd >> banana | |
-bash: banana: Permission denied | |
root@willbell:~/lol# echo asdasdasd >> frog | |
root@willbell:~/lol# cd .. | |
root@willbell:~# ls | |
lol | |
root@willbell:~# chattr +i lol | |
root@willbell:~# cd lol/ | |
root@willbell:~/lol# ls | |
banana frog | |
root@willbell:~/lol# echo asdasdasd >> frog | |
root@willbell:~/lol# cd .. | |
root@willbell:~# ls | |
lol | |
root@willbell:~# mv lol haha | |
mv: cannot move `lol' to `haha': Operation not permitted | |
root@willbell:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment