I am trying to use chmod to allow me to change config.txt. I am using NOOBS on the Raspberry Pi Zero.

chmod u+w config.txt

results in "Operation not permitted."

  • What config file is this? What does ls -l say?
    – Bex
    Apr 1, 2016 at 11:20

2 Answers 2


You probably need to use sudo:

sudo chmod a+w config.txt

Explanation: You don't say much about the file (who owns it?) or which user you're running the command as, but I guess you're probably logged in as a normal user and the file is owned by someone else (root?). Hence you don't have permission to change the permissions.

Using sudo runs the command as the root user, who has permission to do anything.


definitely sudo to fix the permissions issue.

You could also use: sudo chmod 600 config.txt (assuming you are the only user who needs to read/write.

See https://en.wikipedia.org/wiki/Chmod for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.