From owner-freebsd-ports@freebsd.org Sat Mar 26 23:37:53 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 0BF93ADE52A for ; Sat, 26 Mar 2016 23:37:53 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from stig.purplehat.org (stig.purplehat.org [50.243.134.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD81A1D16 for ; Sat, 26 Mar 2016 23:37:52 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from localhost (bill.goatse.unfs.us [50.243.134.106]) by stig.purplehat.org (Postfix) with ESMTP id C2C1F14DA for ; Sat, 26 Mar 2016 17:37:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unfs.us; s=mail; t=1459035461; bh=fJEeaNoxAYILNpO0hylw7WF+AaWIh5swAlQ6AbZrUVo=; h=Subject:To:References:From:Date:In-Reply-To; b=nAvSW6jVwzGjEVi/cxD6a0ncuI+iVclIsljDGr9cC8YzQtZjs3dC5US34oIqlaq+Q smMxM9JuakOvxs4hIX5v4T375j9Rf83NWqd0NOMKZselBMToFT9XLr6oL7eyGZKxC7 x1mDadke58JKYxNMtcwDlz3y1bG9x5ew0UeKOXCc= Received: from stig.purplehat.org ([50.243.134.106]) by localhost (stig.purplehat.org [50.243.134.106]) (maiad, port 10024) with ESMTP id 50056-06 for ; Sat, 26 Mar 2016 17:37:41 -0600 (MDT) Received: from [172.30.30.17] (r029-v.purplehat.org [172.30.30.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jankyj@unfs.us) by stig.purplehat.org (Postfix) with ESMTPSA id C6CB514D3 for ; Sat, 26 Mar 2016 17:37:40 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unfs.us; s=mail; t=1459035460; bh=fJEeaNoxAYILNpO0hylw7WF+AaWIh5swAlQ6AbZrUVo=; h=Subject:To:References:From:Date:In-Reply-To; b=N0e6pdsHNrQOtD1jnC2MP4rBR1S/6tG8b2BpFTGoltvVlSBTLDyoDxEiux8pVZTmR X9V6qQZHCQ/dqZ9yXfsxuWHjGs4lWaiMbV1cNWGNkWQQoNQFTNQwyFSnrwkkLc8eCH ANpdMqPurd083v1ILLTON3XyKqPiaM8PFDF1z/p8= Subject: Re: devel/arduino - bad advice given in pkg-message To: freebsd-ports@freebsd.org References: <56F55A84.6080000@unfs.us> From: "Janky Jay, III" Message-ID: <56F71D44.1080302@unfs.us> Date: Sat, 26 Mar 2016 17:37:40 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 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: Sat, 26 Mar 2016 23:37:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Torfinn, On 03/25/2016 10:20 AM, Torfinn Ingolfsen wrote: > 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" > Ah yes! You are correct! For some reason I was mixing my "pw usermod" and Linux "usermod" (where you use the -aG to append). My fault entirely. Continue with your correct request for the update of the false information. *fades into background* Regards, Janky Jay, III -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlb3HUQACgkQGK3MsUbJZn7YLgCfWOpBHTJfrBLKQfbWWX/qJzWt OKUAn3MhgqhV08uwHMnC1+qseVaNkFVE =khJo -----END PGP SIGNATURE-----