From owner-freebsd-ports@freebsd.org Fri Mar 25 15:43:13 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 9F714ADD456 for ; Fri, 25 Mar 2016 15:43:13 +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 80CD21EB8 for ; Fri, 25 Mar 2016 15:43:13 +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 CE31C16DF; Fri, 25 Mar 2016 09:34:30 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unfs.us; s=mail; t=1458920070; bh=U6R8HUYZRogPOoP3P1a8V1GNSH8p+XVtkvH3XV3SyWM=; h=Subject:To:References:From:Date:In-Reply-To; b=iw/JmhUktDVDeRVCOPBOQWixFCam3nrYirhsSU1hJiLLoskoBClQecPe2HMswPxKT NdaukZoV0PF1uRBSPFFgwYpzRD5Gkuc5gLwv+dmhfzF0q6h0PJbhuSQs2GqzhEWk14 hCIHa9PfRfrJOW3yfJOCt7tq8H1FkdSCCmjUDZro= Received: from stig.purplehat.org ([50.243.134.106]) by localhost (stig.purplehat.org [50.243.134.106]) (maiad, port 10024) with ESMTP id 04040-04; Fri, 25 Mar 2016 09:34:29 -0600 (MDT) Received: from drp01-dev.enwd.co.sc.charterlab.com (chtr-v.purplehat.org [172.30.30.9]) (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 5E5D816D4; Fri, 25 Mar 2016 09:34:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unfs.us; s=mail; t=1458920069; bh=U6R8HUYZRogPOoP3P1a8V1GNSH8p+XVtkvH3XV3SyWM=; h=Subject:To:References:From:Date:In-Reply-To; b=XBi3COzzaYSgUQWi3wIe76bFt1V1yTFvJE3SqcFPTCyRVn3LmfetYJPpPDryfelcr hBsjpjVP1iaUvxwW/x9T5+5y/oHUF8IJYx5g7TpifLF/Vyzr67LanaqLQLq7HA0MW6 TXyoIafBXSF1THa/xSfJl1BEyB2IlBIz8Ad+vLYM= Subject: Re: devel/arduino - bad advice given in pkg-message To: freebsd-ports@freebsd.org References: From: "Janky Jay, III" Message-ID: <56F55A84.6080000@unfs.us> Date: Fri, 25 Mar 2016 09:34:28 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 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: Fri, 25 Mar 2016 15:43:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Torfinn, On 03/25/2016 09:26 AM, Torfinn Ingolfsen wrote: > Hello, The pkg-message for the devel/arduino port contains this: > > "To allow serial port locking, add your user to the dialer group:" > " pw usermod myuser -G dialer" > > It is good to explain what a user have to do to get serial > access. However, if you use that pw command, it will remove your > user from any other groups than the dialer group. Which might be > annoying. Better to use this: pw groupmod dialer -m myuser it will > ony affect the dialer group, and not mess with any other groups. > HTH > 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... That being said, your suggestion does the exact same thing. So, really, either works. Regards, Janky Jay, III -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlb1WoQACgkQGK3MsUbJZn43vACfQcs3E2IWsRaf2SACO1jMmFxt PBsAnjuC5GSvEUvezKLWKS25WJyAGzuQ =KEJX -----END PGP SIGNATURE-----