Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2017 16:29:14 +0300
From:      Sergei Vyshenski <svysh.fbsd@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   add two users to a group
Message-ID:  <CAHU0Y-5FPkN6XSnoi-Se_XSrQ0JrrwQu_im=WcwoQjNnwHhSPQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

Some ports need to add two users to a group. Example. Server openxpki needs
to communicate with web server via a socket. Socket has permissions as:

srwxrwx---  1 openxpki  openxpki     0 Jan 20 11:00 openxpki.socket=

For this to work, we need to add user ${WWWOWN} to the group openxpki, that
is we need to have :

/etc/group:
openxpki:*:777:www

The problem is that when similar line in file /usr/ports/GIDs is processed
by script
/usr/ports/Mk/Scripts/do-users-groups.sh
it ignores all but the very first user, specified for this group.

So only one user per group is allowed by the ports infrastructure.

Could you please recommend a clever way, how I can add the second user to
the existing or new group?

Regards, Sergei



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHU0Y-5FPkN6XSnoi-Se_XSrQ0JrrwQu_im=WcwoQjNnwHhSPQ>