Stefal / rtkbase

Your own GNSS base station for RTK localization with a Web GUI
GNU Affero General Public License v3.0
484 stars 122 forks source link

User not in dialout group can't access tty* #88

Closed Stefal closed 10 months ago

Stefal commented 4 years ago

In these cases, str2str can't acces the gnss receiver

We should check the group ownership and add dialout if needed.

Stefal commented 4 years ago

The way we check dialout group membership doesn't work. The test is a success in all cases, but:

stephane@rtkbase-test:~$ sudo groups stephane
stephane : stephane dialout cdrom floppy sudo audio dip video plugdev netdev bluetooth
stephane@rtkbase-test:~$ groups stephane
stephane : stephane dialout cdrom floppy sudo audio dip video plugdev netdev bluetooth
stephane@rtkbase-test:~$ groups
stephane cdrom floppy sudo audio dip video plugdev netdev bluetooth

See the last groups command. And in this case (user not a dialout member before the RTKBase installation), str2str_tcp can't acces /dev/tty* and the script doesn't warn the end user that he must reboot.

My mistake, the gnss receiver was not connected during the installation, so the tty was a wrong one.