Skip to content

Instantly share code, notes, and snippets.

Created October 25, 2015 11:35
  • Star 17 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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
Copy link

rslay commented Nov 25, 2019

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