We have our application server (glassfish 4) running under the user glassfish. We have our solr 5 server running under the user solr. Both glassfish and solr are running on the same physical server.
An application that runs within glassfish needs to be able to create a solr core. To do this, 1) the application copies a predefined solr configuration into the
/var/solr/data directory. 2) Issues a solr command through the REST API to create the solr core.
However, the folder is owned by glassfish with the permissions 0755. Due to these permissions the solr user cannot create a data directory and create the core correctly.
If I manually set the folder that is uploaded to 0777 and create the core, the core is created successfully.
What would be the most appropriate way of solving this?
I would expect solr to have a mechanism to handle this type of situation, but I can't seem to find anything.