Live data from Hacker News

Stop making swap partitions–use swap files instead

gist.github.com

1–8 of 8 posts

Re: Stop making swap partitions–use swap files instead

#8
post #3

Anything that does create file chmod 0600 file should be umask 077 create file

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.