title: stack execution protection and randomization on ubuntu
body: <p>As part of a course assignment i need to write an exploit code to cause a buffer overflow and execute code that is present on stack.</p>
  
  <p>I have turned off the stack randomiztion by the following command:
  sysctl -w kernel.randomize_va_space=0
  However, i am unable to find a way to turn off the stack execution protection. I am not sure whether there is some stack exec protection in ubuntu or not... so my first question is whether there is something like red hat's exec-shield in ubuntu 8.10 and if there is, how can we turn it off.</p>
  
  <p>I have been trying to cause a buffer overflow and execute instruction from stack, but whenever i try to do so, it gives me a seg fault.</p>
  
  <p>i ve got ubuntu 8.10 64 bit, HOWEVER, the program im debugging is compiled on an i386 machine with stack protection turned off.</p>