Date: Thu, 26 Jan 2017 07:00:15 -0700 From: Adam Weinberger <adamw@adamw.org> To: Sergei Vyshenski <svysh.fbsd@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: add two users to a group Message-ID: <289E7DE0-9AD2-48A3-AF2D-3285719E325F@adamw.org> In-Reply-To: <CAHU0Y-5FPkN6XSnoi-Se_XSrQ0JrrwQu_im=WcwoQjNnwHhSPQ@mail.gmail.com> References: <CAHU0Y-5FPkN6XSnoi-Se_XSrQ0JrrwQu_im=WcwoQjNnwHhSPQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 26 Jan, 2017, at 6:29, Sergei Vyshenski <svysh.fbsd@gmail.com> wrote: > > 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 What about chown openxpki:www opnxpki.socket? # Adam -- Adam Weinberger adamw@adamw.org https://www.adamw.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?289E7DE0-9AD2-48A3-AF2D-3285719E325F>