From owner-freebsd-ports@freebsd.org Thu Mar 31 14:41:01 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 2E413AE4363 for ; Thu, 31 Mar 2016 14:41:01 +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 0D7F41A9C for ; Thu, 31 Mar 2016 14:41:00 +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 4247A59F24; Thu, 31 Mar 2016 08:40:49 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unfs.us; s=mail; t=1459435249; bh=+3KIwWR7ctjZkXWdKATS1nUI/ZOmJILC7eMc3xoZBq4=; h=Subject:To:References:From:Date:In-Reply-To; b=INXHV8ZcVog+1puond78sgSBhYdzTtMVPpaLSkY9kyv9ce0OLXMQPCGuouHWQKYnL qT3VqwghBux7qIfUjrnSQfE290Auu19e3u22h1eu+JPPJKIAfggnUlMO9KgU3kkZyo ANKmnFLfJ0LuDed3FaD6stQvNmX3Yi2oC9ZhsLz8= Received: from stig.purplehat.org ([50.243.134.106]) by localhost (stig.purplehat.org [50.243.134.106]) (maiad, port 10024) with ESMTP id 67713-08; Thu, 31 Mar 2016 08:40:47 -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 645EC59EFD; Thu, 31 Mar 2016 08:40:47 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=unfs.us; s=mail; t=1459435247; bh=+3KIwWR7ctjZkXWdKATS1nUI/ZOmJILC7eMc3xoZBq4=; h=Subject:To:References:From:Date:In-Reply-To; b=B2Hp+rYpQ9nKKcufm6i0YOjVX1Who3sgGdgyuoYc5BTa3wJYK93FqGRL9uKgL1e5P buk+DfoS2fDpTERi24JYmAg7rG8NBYuleMVlh99OpH4QUEBW9uBOj2IDSfBz/GH85+ NlCfjvGae2Tdm1XwMllo4zP1dXgMdLw9wAG40joc= Subject: Re: devel/arduino - bad advice given in pkg-message To: freebsd-ports@freebsd.org References: <56F55A84.6080000@unfs.us> <56F71D44.1080302@unfs.us> From: "Janky Jay, III" Message-ID: <56FD36EE.8070506@unfs.us> Date: Thu, 31 Mar 2016 08:40:46 -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: Thu, 31 Mar 2016 14:41:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Tom, On 03/31/2016 04:46 AM, Warren Block wrote: > On Sun, 27 Mar 2016, Warren Block wrote: > >> Here is how I propose to rewrite that: >> >> -G grouplist Set secondary group memberships for an account. >> grouplist is a comma, space, or tab-separated list of group names >> or group numbers. /etc/group is modified to include the user's >> name in the groups specified in grouplist. The user's name is >> removed from all groups not specified. Group membership changes >> do not take effect for current user login sessions, requiring the >> user to reconnect to be affected by the changes. Note: do not >> add a user to their primary group with grouplist. > >> Modified version committed in >> https://svnweb.freebsd.org/base/head/usr.sbin/pw/pw.8?r1=297330&r2=29 7329&pathrev=297330 > >> > I've been following this thread, have this question: > > How does one add a user to additional groups without removing the > user from groups the user is already in? > > I just looked at the new manpage from a fresh svn update of src > tree. > This was actually covered in this thread (first post, actually) by Torfinn Ingolfsen: "Better to use this: pw groupmod dialer -m myuser it will ony affect the dialer group, and not mess with any other groups. " The above will add the user "myuser" to the "dialer" group while leaving the user's other group intact as well. Regards, Janky Jay, III -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlb9Nu4ACgkQGK3MsUbJZn7exACfZiXwVfIE762df3rfxVmdpd/K CKkAnjgBMJ3ewsIlYlQB5OhkbKx2opT6 =Or1f -----END PGP SIGNATURE-----