you dont need to modify that to change path for roms – just bind mount your roms real location where it expects them – https://docs.1h.com/Bind_mounts
you are getting permissions denied as it’s a system config owned by root user – you would need to sudo to root to copy over it (or make it readable by other users)