Date: Thu, 31 Mar 2016 08:40:46 -0600 From: "Janky Jay, III" <jankyj@unfs.us> To: freebsd-ports@freebsd.org Subject: Re: devel/arduino - bad advice given in pkg-message Message-ID: <56FD36EE.8070506@unfs.us> In-Reply-To: <F6.17.31587.E100DF65@dnvrco-oedge03> References: <CAJ_iqtYP7NPbL2tZtGZNWOhuQWx8VLACxTuwyWo_UieyKaWRKA@mail.gmail.com> <56F55A84.6080000@unfs.us> <CAJ_iqtbjiYA8Rj4BjRp8wR1uEELtSGXb2hwh-mHhhQRiLeCTug@mail.gmail.com> <56F71D44.1080302@unfs.us> <alpine.BSF.2.20.1603271224410.74866@wonkity.com> <alpine.BSF.2.20.1603272154380.57883@wonkity.com> <F6.17.31587.E100DF65@dnvrco-oedge03>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56FD36EE.8070506>