Make sure you have write access to that folder and file and that the settings.db file is not read-only.
All of that is default (as in by default you can write to anything in that entire directory structure and the files are not read-only), so if it's different something or someone changed it.