Some sudo tweaks to access settings file