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

Do not allow bin/solr start as root user (unless -force param specified)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3, 7.0
    • Component/s: scripts and tools
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      Spinoff from SOLR-7826

      We should abort with a warning if user tries to start Solr as root, since this is simply not recommended and poses a security threat.
      We should do the same for the "restart" option.

      1. SOLR-9547.patch
        2 kB
        Jan Høydahl

        Issue Links

          Activity

          Hide
          janhoy Jan Høydahl added a comment -

          Patch attached. Blocks both start and restart commands if root user. Will commit on Monday if no comments.

          Show
          janhoy Jan Høydahl added a comment - Patch attached. Blocks both start and restart commands if root user. Will commit on Monday if no comments.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 6b28af0c7d779f07ba543f7fbf58f485d5038153 in lucene-solr's branch refs/heads/master from Jan Høydahl
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6b28af0 ]

          SOLR-9547: Do not allow bin/solr start as root user (unless -force param specified)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 6b28af0c7d779f07ba543f7fbf58f485d5038153 in lucene-solr's branch refs/heads/master from Jan Høydahl [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6b28af0 ] SOLR-9547 : Do not allow bin/solr start as root user (unless -force param specified)
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 30c26b3313e12d11377b426493aa7f71a66dbe65 in lucene-solr's branch refs/heads/branch_6x from Jan Høydahl
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=30c26b3 ]

          SOLR-9547: Do not allow bin/solr start as root user (unless -force param specified)

          (cherry picked from commit 6b28af0)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 30c26b3313e12d11377b426493aa7f71a66dbe65 in lucene-solr's branch refs/heads/branch_6x from Jan Høydahl [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=30c26b3 ] SOLR-9547 : Do not allow bin/solr start as root user (unless -force param specified) (cherry picked from commit 6b28af0)
          Show
          janhoy Jan Høydahl added a comment - Documented in refGuide https://cwiki.apache.org/confluence/display/solr/Solr+Start+Script+Reference https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production
          Hide
          shalinmangar Shalin Shekhar Mangar added a comment -

          Closing after 6.3.0 release.

          Show
          shalinmangar Shalin Shekhar Mangar added a comment - Closing after 6.3.0 release.

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              janhoy Jan Høydahl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development