Bug#924105: Need to add group creation to postinst script

2019-06-06 Thread Jason Guy
I see now...

dpkg-statoverride: error: group '_kea' does not exist

I will fix this...

Jason


On Thu, Jun 6, 2019 at 10:06 AM Jason Guy  wrote:

> Hi Shane,
>
> Thanks for the help on this. I thought the username is automatically
> created with a group of the same name, as part of user creation.
> Is the _kea group not getting created when you installed it? Please let me
> know what OS and version you tested on.
>
> I see there is a loop that also set the user and group for all files in
> /var/log/kea:
>
>for d in /var/log/kea /var/lib/kea; do
> if ! dpkg-statoverride --list $d >/dev/null 2>&1; then
> dpkg-statoverride --update --add *_kea _kea 0750 $d*
> fi
> done
>
> This _kea user is new in 1.5.0, for security, so it is only done for the
> debian/ubuntu package installs.
>
> Thanks,
> Jason
>
> On Fri, Apr 26, 2019 at 4:33 PM Shane Spencer  wrote:
>
>> addgroup --force-bad-name --system _kea
>> adduser ...
>> adduser _kea _kea
>>
>> That way kea is run as _kea.nogroup with access to _kea group.
>>
>> Not sure about those names either.  Is that standard for kea installs?
>>
>> <https://about.me/ShaneSpencer?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>> Shane Spencer
>> about.me/ShaneSpencer
>> <https://about.me/ShaneSpencer?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>>
>


Bug#924105: Need to add group creation to postinst script

2019-06-06 Thread Jason Guy
Hi Shane,

Thanks for the help on this. I thought the username is automatically
created with a group of the same name, as part of user creation.
Is the _kea group not getting created when you installed it? Please let me
know what OS and version you tested on.

I see there is a loop that also set the user and group for all files in
/var/log/kea:

   for d in /var/log/kea /var/lib/kea; do
if ! dpkg-statoverride --list $d >/dev/null 2>&1; then
dpkg-statoverride --update --add *_kea _kea 0750 $d*
fi
done

This _kea user is new in 1.5.0, for security, so it is only done for the
debian/ubuntu package installs.

Thanks,
Jason

On Fri, Apr 26, 2019 at 4:33 PM Shane Spencer  wrote:

> addgroup --force-bad-name --system _kea
> adduser ...
> adduser _kea _kea
>
> That way kea is run as _kea.nogroup with access to _kea group.
>
> Not sure about those names either.  Is that standard for kea installs?
>
> 
> Shane Spencer
> about.me/ShaneSpencer
> 
>


Bug#905977: kea-ctrl-agent: missing dependency on python3

2018-09-24 Thread Jason Guy
Thanks Adrian, I have made the changes to fix this, but I am running into
issues building the package. The odd part is the errors seem unrelated to
the changes. I just wanted to let you know I am working on it.




On Sun, Aug 12, 2018 at 1:58 PM, Adrian Bunk  wrote:

> Package: kea-ctrl-agent
> Version: 1.4.0.P1-3
> Severity: serious
>
> kea-ctrl-agent lacks a python3 dependency
> for /usr/sbin/kea-shell
>
> This can be fixed by adding dh-python to the build dependencies
> plus python3 to the "dh $@ --with" in debian/rules.
>