From owner-freebsd-ports@freebsd.org Thu Jan 26 13:29:16 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A987BCC1DD1 for ; Thu, 26 Jan 2017 13:29:16 +0000 (UTC) (envelope-from svysh.fbsd@gmail.com) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 70C5CD49 for ; Thu, 26 Jan 2017 13:29:16 +0000 (UTC) (envelope-from svysh.fbsd@gmail.com) Received: by mail-oi0-x22e.google.com with SMTP id s203so5941989oie.1 for ; Thu, 26 Jan 2017 05:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=fHIowsNxs9WN1t1dd1r8qJFRbBOC/sKcom27Jwj0x+0=; b=kp4qYrTPwKemdUHT3DWjDQW1DUoOFNR1Uqk/hTD1YF3AH+eC7fjuGXSaE7ov80Uprr RUX5L2h+zvmbGSsVcB0/kqe4qzuMgJNWrGBlwcjWJb9hb5XCH6wjoI+a7ysClBLWwQgn Y4c31KsfaAPTsG749OEPyfStWEjTqz+9zaYXXnrdirO8W8Ln6wYWC+NK+epQ++/zSkyz RDz/RDGdbxJ8b2TmVZKk5AH5cR62VcpV29vCkINSKF6+d4pdqITJMZNNHodJQgewRA8H Re+RGGOpiQSpspVdj1IgV1RfRCn+HdbQpGpiBpuvYZy00wmocSaJQX7U6DUn5CyJA+h8 paCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fHIowsNxs9WN1t1dd1r8qJFRbBOC/sKcom27Jwj0x+0=; b=fOWJ4GvwpDw+NvmwbCPuW3H2nh7Bs4hzRKQdPI6Khzn1DVbIstZtNiJ2wYXjF+VeSy 5ZHkfGSAv7W3GuNuHwSGBj9T/Rtaod1/wSDKndPFUvLuX6BfPkdQRTFwvnpj5ezrCKU9 kD0awxNyzSu8GcAFrP2PPBhaGpsAHJfJy8vrJml0e4tS1GsCuzeKPbNc/efh83Q3AngO 3RafQeofqISQ0TF2Ey0Tqo78cWo0FpW07ILz/ALLlXxaEKvjcUE5mFs6hIXAXdI9qK97 pjHKlxpX/t3NHhnoHDvX9+cwfYBC3U1EmpEXzwGCXJY33mNXf+tC/T74WM4deLy3iEIg 1CEw== X-Gm-Message-State: AIkVDXLKzq0ZCXQQdSAog9zZlmQ9ULgc/L2IxGCFiurIOpB+dpk1+yfEYepTlS4vjeXVQvFuiLoE3kmNaxg16w== X-Received: by 10.202.44.216 with SMTP id s207mr1903134ois.23.1485437354919; Thu, 26 Jan 2017 05:29:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.84.201 with HTTP; Thu, 26 Jan 2017 05:29:14 -0800 (PST) From: Sergei Vyshenski Date: Thu, 26 Jan 2017 16:29:14 +0300 Message-ID: Subject: add two users to a group To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2017 13:29:16 -0000 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