Skip to content

Instantly share code, notes, and snippets.

@joswr1ght
Created October 25, 2015 11:35
Show Gist options
  • Save joswr1ght/a45d000ceaccf4cce6cb to your computer and use it in GitHub Desktop.
Save joswr1ght/a45d000ceaccf4cce6cb to your computer and use it in GitHub Desktop.
Disable DEP/NX on Linux in Grub
Boot and interrupt the GRUB menu
Edit the boot configuration, changing the "linux" line by adding these two parameters to the end of the line:
noexec=off noexec32=off
Then boot by pressing Ctrl+x.
After booting, you can check to see if DEP/NX is turned off by running:
dmesg | grep NX
When DEP/NX is turned off you should see something similar to this output:
# dmesg | grep NX
[ 0.000000] NX (Execute Disable) protection: disabled by kernel command line option
@WR4F
Copy link

WR4F commented Nov 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment