Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed minimal OpenWRT firmware on Linksys router.

When I try to modify some of the files withing /etc/ directory for example firewall.user file by using command vi firewall.user it opens file in read-only attributes only.

How can I enable editing of files? The chmod command isn't accessible and my memory in router is very limited, therefore installing any extra resources is not an option.

share|improve this question

The filesystem is mounted read only, you need to change how it is mounted.

But most embedded system don't work that way, and in those cases you need to modify the image you flashed the device with so it is correct from the start.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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