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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.3, 7.0
    • None

    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_sameuser.patch
          8 kB
          Jan Høydahl
        2. SOLR-7826.patch
          2 kB
          Jan Høydahl
        3. SOLR-7826.patch
          7 kB
          Binoy Dalal

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            janhoy Jan Høydahl
            elyograg Shawn Heisey
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment