devel/arduino - bad advice given in pkg-message
Janky Jay, III
jankyj at unfs.us
Fri Mar 25 15:43:13 UTC 2016
-----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-----
More information about the freebsd-ports
mailing list