Globally refreshing new group membership - would be needed after some package installations

Robie Basak robie.basak at ubuntu.com
Thu Aug 2 11:32:06 UTC 2018


On Thu, Aug 02, 2018 at 01:16:04PM +0200, Christian Ehrhardt wrote:
> I was wondering if there is a common pattern to resolve this that might
> just be unknown to me yet and that I could use in packaging.

I have in mind to write a wrapper that checks if "newgrp" or "sg" would
succeed and exec itself via that if so. I'm not aware of this being an
existing pattern though.

If we wanted to make it a standard thing, we could provide such a
wrapper in a package and then packages that wanted to use it could
register with (and symlink to) the wrapper.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20180802/93c3419e/attachment.sig>


More information about the ubuntu-devel mailing list