devel/arduino - bad advice given in pkg-message
Janky Jay, III
jankyj at unfs.us
Thu Mar 31 14:41:01 UTC 2016
-----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-----
More information about the freebsd-ports
mailing list