From owner-freebsd-ports@freebsd.org Fri Mar 25 16:20:19 2016 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 A253CADDC80 for ; Fri, 25 Mar 2016 16:20:19 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (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 2BFA91132 for ; Fri, 25 Mar 2016 16:20:19 +0000 (UTC) (envelope-from tingox@gmail.com) Received: by mail-lb0-x22b.google.com with SMTP id k12so50800107lbb.1 for ; Fri, 25 Mar 2016 09:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=BowiAlw5BxoJVpvwqxnrOp0HZfZbMLTDP0TxPEh9mMU=; b=Tl6nRNo/QE/IsgzzYtQ49iXpdBqqtfOO4q1G3zU+wBL/3GURQ9Dzm7TXr/GXQn5YEc tenM8gBoC59cf+7gV8PZLb0dgA88M2nmNyJby5PvQsqBgJvxZ3MgZz96Sjp8YIPqX579 JXIFrrRLb+QBmKQXQ7AlCEGjUvNNxBSltysUJi0wORcFA8jjeTCTX+BB67YXgRiDR/0p qG9jwN4Ni7+4HRz9Coh4+ZKsioV4IHnSwX7F++yjPncEvMXkKXR+dNzUfE8JEmtDORR8 NkHf9PrdGKicpziKSadjleiREQDiBRBjFcnzdrQPifMjz8QL62edClLXe5RBntivLF3R c4ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=BowiAlw5BxoJVpvwqxnrOp0HZfZbMLTDP0TxPEh9mMU=; b=A6U88fQZHJT2QfN0i6aYfGNM8y4Z0DOQFSvldgR9SMeU6AKIr5V/VYjQKjjJw1cfqY kdciZrlMKOvmz8CITHylRDpWS+y9Q7rDH5XMMFLaizu82pwBfvK8PrZtWocj5XvIbc93 ejVDiFGdQkJOLWcY3WKPo3MzHjChnQp1o3vMU3jmxX61b0TN/CO7qWmCWlBqDoQTqK3B GHgDKEsAoOKb5AG2axEPQLEyn95sveH2RvhOKymwY565g8PPgYy76PCdovahzor0waVK YI8ESsphhEp+aZ0zoQIBpEp3i1QdheD9Q5BEcBaCw14JgIi5b9IVaYlmNkPeQWmMCdpS Zt9Q== X-Gm-Message-State: AD7BkJJN5p1yiVHm4gXTeI5ArGU0lffNjKwdgQdt0O+lIXTyVcSiLRiuOGXEf7D050e8DzJyjE8EzZYcere2rA== MIME-Version: 1.0 X-Received: by 10.112.202.104 with SMTP id kh8mr6058617lbc.8.1458922817149; Fri, 25 Mar 2016 09:20:17 -0700 (PDT) Received: by 10.25.149.139 with HTTP; Fri, 25 Mar 2016 09:20:17 -0700 (PDT) In-Reply-To: <56F55A84.6080000@unfs.us> References: <56F55A84.6080000@unfs.us> Date: Fri, 25 Mar 2016 17:20:17 +0100 Message-ID: Subject: Re: devel/arduino - bad advice given in pkg-message From: Torfinn Ingolfsen To: FreeBSD Ports ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2016 16:20:19 -0000 On Fri, Mar 25, 2016 at 4:34 PM, Janky Jay, III wrote: > > While your solution is not incorrect, your assumption on the > proposed/given solution from the port is. The '-G' switch appends the > given group to your users already given groups. So, if a user belongs > to groups admin,wheel,test and you run the suggested "pw" command from > the port, your user will now be in groups admin,wheel,test,dialer. > It's the '-g' (lower-case) switch you want to avoid... > If you read the man page, I think you will find that it is your assumption about what the '-G' switch does which is incorrect. Quote: "-G grouplist" "Set additional group memberships for an account. grouplist is a comma, space or tab-separated list of group names or group numbers. The user's name is added to the group lists in /etc/group, and removed from any groups not specified in grouplist." Please note the part which says "and removed from any groups not specified in grouplist" -- Regards, Torfinn