see this
Quote: "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"
Quote: "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"