Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2502

karaf-service script does not properly set the RUN_AS_GROUP variable if a primary group is not set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.3
    • Fix Version/s: 2.4.0, 3.0.0, 2.3.4
    • Component/s: None
    • Labels:
      None

      Description

      In karaf-service when a primary group cannot be found the RUN_AS_GROUP variable is not set correctly. It is currently:

      # Resolve the primary group
      RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
      if [ "X$RUN_AS_GROUP" = "X" ]
      then
         RUN_AS_GROUP=RUN_AS_USER
      fi
      

      Don't think we mean to set RUN_AS_GROUP to "RUN_AS_USER". Attaching patch shortly.

        Attachments

        1. KARAF-2502-karaf-2.3.x.patch
          0.8 kB
          Jonathan Anstey
        2. KARAF-2502-karaf-2.x.patch
          0.8 kB
          Jonathan Anstey
        3. KARAF-2502-trunk.patch
          0.8 kB
          Jonathan Anstey

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              janstey Jonathan Anstey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: