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
$ mount | grep " / " | |
/dev/sda on / type ext4 (rw,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user,grpjquota=quota.group) | |
$ touch dont_touch_me | |
$ chmod 000 dont_touch_me | |
$ sudo chown root:root dont_touch_me | |
$ sudo chattr +i dont_touch_me | |
$ ls -l dont_touch_me | |
---------- 1 root root 0 Aug 16 14:20 dont_touch_me | |
$ rm dont_touch_me | |
rm: cannot remove ‘dont_touch_me’: Operation not permitted |