Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7826

Permission issues when creating cores with bin/solr as root user

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3, 7.0
    • Component/s: None
    • Labels:

      Description

      Ran into an interesting situation on IRC today.

      Solr has been installed as a service using the shell script install_solr_service.sh ... so it is running as an unprivileged user.

      User is running "bin/solr create" as root. This causes permission problems, because the script creates the core's instanceDir with root ownership, then when Solr is instructed to actually create the core, it cannot create the dataDir.

      Enhancement idea: When the install script is used, leave breadcrumbs somewhere so that the "create core" section of the main script can find it and su to the user specified during install.

        Attachments

        1. SOLR-7826.patch
          7 kB
          Binoy Dalal
        2. SOLR-7826.patch
          2 kB
          Jan Høydahl
        3. SOLR-7826_sameuser.patch
          8 kB
          Jan Høydahl

        Issue Links

          Activity

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              elyograg Shawn Heisey

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment