Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1369

There is invalid group error when install Solr for Ranger Audits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • admin
    • Patch

    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.

      Attachments

        Activity

          People

            zhangqiang2 Qiang Zhang
            zhangqiang2 Qiang Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified