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"

 

相关文章:

  • 2021-08-16
  • 2022-02-21
  • 2021-12-20
  • 2021-06-26
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案