turn off ASLR in linux

turn off ASLR in linux

Q:  

I want to turn off ASLR on my own PC. But each time I type "sudo echo 0 > /proc/sys/kernel/randomize_va_space", the system shows that "Permission denied". How can I make it work? By the way, my OS kernel is 2.6.30.

A:

This is a common problem with sudo and shell redirection. The "sudoness" doesn't propagate past the redirection. One way to get around it is

sudo bash -c "echo 0 > /path/to/file"

 

posted @ 2012-10-03 17:39  jeremyatchina  阅读(219)  评论(0编辑  收藏  举报