Monday 30 December 2013

sudo does not modify file - permission denied

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"

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