From d4e818c22f882cf7679292b80552861f855240fa Mon Sep 17 00:00:00 2001 From: Michael McMahon Date: Thu, 22 Oct 2020 17:50:35 +0000 Subject: [PATCH] Setting permissions prevents a warning from swapon Warning text: ``` /sbin/swapon /var/swap.1 swapon: /var/swap.1: insecure permissions 0644, 0600 suggested. ``` --- doc/articles/troubleshooting.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/articles/troubleshooting.md b/doc/articles/troubleshooting.md index 3c9045f0a..58989f6f2 100644 --- a/doc/articles/troubleshooting.md +++ b/doc/articles/troubleshooting.md @@ -202,6 +202,7 @@ To enable the swap you can use for example: ```sh /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 /sbin/mkswap /var/swap.1 +/bin/chmod 0600 /var/swap.1 /sbin/swapon /var/swap.1 ``` You can make a permanent swap file following this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04).