Rendered at 15:26:30 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
eqvinox 12 hours ago [-]
Anything that does
create file
chmod 0600 file
should be
umask 077
create file
SeriousM 4 minutes ago [-]
Foe the ones, like me, who didn't know why you recommended that:
By setting umask 077 first and then creating the file, the file gets created with the correct restrictive permissions (0600) in one step instead leaving the file readable for "everyone" for a moment.
gucci-on-fleek 10 hours ago [-]
Probably not a great idea if you're using btrfs [0].
By setting umask 077 first and then creating the file, the file gets created with the correct restrictive permissions (0600) in one step instead leaving the file readable for "everyone" for a moment.
[0]: https://btrfs.readthedocs.io/en/latest/Swapfile.html#:~:text...
Just kidding, I agree with the sentiment. It's 2026 not 1976. You don't need separate physical partitions for most use cases.