diff --git a/swap/README.md b/swap/README.md index a8a16e7..1764b63 100644 --- a/swap/README.md +++ b/swap/README.md @@ -30,6 +30,12 @@ Here is how you do it: # ALL ALL =(ALL) NOPASSWD: /home/[USERNAME]/scripts/swap.sh ALL ALL =(ALL) NOPASSWD: /home/[USERNAME]/Desktop/swap.sh + + @includedir /etc/sudoers.d + + [USERNAME] ALL=(ALL) NOPASSWD: /bin/systemctl restart * + [USERNAME] ALL=(ALL) NOPASSWD: /sbin/swapoff + [USERNAME] ALL=(ALL) NOPASSWD: /sbin/swapon ``` 3. Exit and Save file.