Skip to content

Instantly share code, notes, and snippets.

$ 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