What linux distro do you use? I’m doing a chown -R user:group /openfire so the user running the Openfire is the owner of all files in that folder. Then if you start the server with that user logged in and complete a setup, it should be able to save settings.
As about starting on a system startup. I’m not really familiar with the rpm. It probably depends on a linux distro. I’m using my custom deamon to start it automatically (Arch Linux).
If you are using root user to run it, then there is no need to chmod or chown it. Though it’s of course not a welcome practice to run service with the root permissions.
So far i dont understand where the problem could be.