Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> (I've taken to doing a chattr +i on the file quite often)

That requires ext4 AFAIK, whereas many systems use XFS, BTRFS, or ZFS. I've done this as well on several files I don't want mucked with, when I can't simply disable the systemd daemons. For me, ext4 works best.



> That requires ext4 AFAIK, whereas many systems use XFS, BTRFS, or ZFS.

All three of these support immutable files:

* https://man.archlinux.org/man/xfs.5.en#FILE_ATTRIBUTES

* https://man.archlinux.org/man/btrfs.5.en#Attributes

* 2016 OpenZFS bug where it was broken and fixed: https://github.com/openzfs/zfs/pull/5486


TIL. Thanks!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: