Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When invoking `sudo`, you're escalating privileges on the command followed but that doesn't apply to the redirection of output (`>`). So it's saying permission denied to write to the files. You'll need to do something like `curl | sudo tee /path/to/file`. Same with `echo`.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: