[
https://issues.apache.org/jira/browse/RANGER-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Qiang Zhang updated RANGER-1369:
--------------------------------
Description:
There are some logic defects in the following
script(/security-admin/contrib/solr_for_audit_setup/setup.sh):
sudo chown -R $SOLR_USER:$SOLR_USER $SOLR_INSTALL_FOLDER
set_ownership $SOLR_USER $SOLR_USER $SOLR_INSTALL_FOLDER
It will cause invalid group error if the group does not exist.
And these logics do not support the case where the user name is different with
the user group.
We should use SOLR_GROUP to resolve these logic defects. The new code is as
following:
sudo chown -R $SOLR_USER:$SOLR_GROUP $SOLR_INSTALL_FOLDER
set_ownership $SOLR_USER $SOLR_GROUP $SOLR_INSTALL_FOLDER
And set a value for SOLR_GROUP alone.
was:
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.
> 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
> Attachments:
> 0001-RANGER-1369-There-is-invalid-group-error-when-instal.patch
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> There are some logic defects in the following
> script(/security-admin/contrib/solr_for_audit_setup/setup.sh):
> sudo chown -R $SOLR_USER:$SOLR_USER $SOLR_INSTALL_FOLDER
> set_ownership $SOLR_USER $SOLR_USER $SOLR_INSTALL_FOLDER
> It will cause invalid group error if the group does not exist.
> And these logics do not support the case where the user name is different
> with the user group.
> We should use SOLR_GROUP to resolve these logic defects. The new code is as
> following:
> sudo chown -R $SOLR_USER:$SOLR_GROUP $SOLR_INSTALL_FOLDER
> set_ownership $SOLR_USER $SOLR_GROUP $SOLR_INSTALL_FOLDER
> And set a value for SOLR_GROUP alone.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)