Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.