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 '16 at 11:20

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, privacy policy and cookie policy

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