How to edit protected config files?
-
I want to make a small tweak to the file /opt/retropie/libretrocores/lr-bluemsx/Machines/MSX/config.ini so that a game will work.
Unfortunately this happens in WinSCP when I try to save the new version:
And I've fallen for the lies of that error message before - if you try to delete the file and create a new one, you just get another permission error.
Any way round it?
-
@SuperFella what permissions are you using to connect in via WinSCP? It could be it is owned by the pi user or the root user, and that's why you can't edit it, hence the error.
-
Not a clue. But sudo chmod+777 config.ini in the Command window seems to have done the trick. (Or at least, I've edited the file, but the game still won't work.)
-
@SuperFella well that command set read write and execute permissions to all users, so it would indeed do it!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.