Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2016 09:34:28 -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:  <56F55A84.6080000@unfs.us>
In-Reply-To: <CAJ_iqtYP7NPbL2tZtGZNWOhuQWx8VLACxTuwyWo_UieyKaWRKA@mail.gmail.com>
References:  <CAJ_iqtYP7NPbL2tZtGZNWOhuQWx8VLACxTuwyWo_UieyKaWRKA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56F55A84.6080000>