Home Knowledge Base Fantacy Script & Apps How to set permission for the swap file?

How to set permission for the swap file?

To prevent the file being world-readable, you should setup the correct permissions on the swap file:

sudo chown root:root /swapfile

sudo chmod 0600 /swapfile