[ https://issues.apache.org/jira/browse/RANGER-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Qiang Zhang updated RANGER-1369: -------------------------------- Description: In the following script of /security-admin/contrib/solr_for_audit_setup/setup.sh, {code} sudo chown -R $SOLR_USER:$SOLR_USER $SOLR_INSTALL_FOLDER set_ownership $SOLR_USER $SOLR_USER $SOLR_INSTALL_FOLDER {code} there is logic defects in changing the user and group of SOLR_INSTALL_FOLDER. Use SOLR_USER as group, which means the user and group of SOLR_INSTALL_FOLDER must be the same. But in the case of user and group are diffrent, because the group does not exist, would result in the invalid group error. was: When install solr for ranger audits, there is solr installed in user "solr" with gourp "hadoop", which means SOLR_INSTALL=false in install.properties of solr_for_audit_setup, then execute the script setup.sh of solr_for_audit_setup as root, and error occured "chown: invalid group: solr:solr", because setup.sh dose not konw the correct group of solr, so support configure solr group is resonable. > There is invalid group error when install Solr for Ranger Audits > ---------------------------------------------------------------- > > Key: RANGER-1369 > URL: https://issues.apache.org/jira/browse/RANGER-1369 > Project: Ranger > Issue Type: Bug > Components: admin > Reporter: Qiang Zhang > Assignee: Qiang Zhang > Labels: patch > Original Estimate: 48h > Remaining Estimate: 48h > > In the following script of > /security-admin/contrib/solr_for_audit_setup/setup.sh, > {code} > sudo chown -R $SOLR_USER:$SOLR_USER $SOLR_INSTALL_FOLDER > set_ownership $SOLR_USER $SOLR_USER $SOLR_INSTALL_FOLDER > {code} > there is logic defects in changing the user and group of SOLR_INSTALL_FOLDER. > Use SOLR_USER as group, which means the user and group of SOLR_INSTALL_FOLDER > must be the same. > But in the case of user and group are diffrent, because the group does not > exist, > would result in the invalid group error. -- This message was sent by Atlassian JIRA (v6.3.15#6346)