karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-2502) karaf-service script does not properly set the RUN_AS_GROUP variable if a primary group is not set
Date Tue, 08 Oct 2013 11:04:42 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789106#comment-13789106
] 

Jean-Baptiste Onofré commented on KARAF-2502:
---------------------------------------------

Fixed on karaf-2.x: http://svn.apache.org/viewvc?view=revision&revision=1530222

> karaf-service script does not properly set the RUN_AS_GROUP variable if a primary group
is not set
> --------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-2502
>                 URL: https://issues.apache.org/jira/browse/KARAF-2502
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.3
>            Reporter: Jonathan Anstey
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.0, 3.0.0, 2.3.4
>
>         Attachments: KARAF-2502-karaf-2.3.x.patch, KARAF-2502-karaf-2.x.patch, KARAF-2502-trunk.patch
>
>
> In karaf-service when a primary group cannot be found the RUN_AS_GROUP variable is not
set correctly. It is currently:
> {code}
> # 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
> {code}
> Don't think we mean to set RUN_AS_GROUP to "RUN_AS_USER". Attaching patch shortly.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message