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

How to set the permission for swap file?

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

sudo chown root:root /swapfile

sudo chmod 0600 /swapfile