Exec-Shield is a security feature in the Linux kernel that provides protection against buffer overflow attacks. To turn on Exec-Shield on Ubuntu, you need to modify the boot command line and add the following parameter:
execstack=off
Here are the steps to do this:
- Boot into the GRUB menu by holding down the Shift key during boot.
- Select the boot option you want to modify and press ‘e’ to edit the boot command.
- Find the line starting with ‘linux’ and add
execstack=off
at the end of the line. - Press Ctrl + X or F10 to boot with the modified parameters.
Note: The above steps may vary based on your Ubuntu version and the boot loader you are using.