How to add user to group - SOLVED

Hi All,
Still struggling to get everything the way I want it on Aurora. Loving the performance though, it feels a lot faster than my Nobara install (also Fedora based).
Problem now is that I want to use Thonny, a simple editor to write programs in Micropython and upload them to a microcontroller device (like Arduino).
To talk to the device however, it requires my userid to be a member of a group, the nfsnobody group to be precise. (It’s dialout on most other distros, not sure why it’s different for Aurora).

sudo usermod -a -G nfsnobody <username>

doesn’t seem to work. Having successfully run the command, I restarted Aurora, but still the only group I’m a member of is “wheel”.

I’ve done a lot of searching on the net, but unfortunately aurora seems to be a pretty common name, there are lots of them! Hence the basic question.

Thanks, :wink:

You are inside a container most likely. Assuming you are inside a distrobox.

On your host do the following:

grep "^dialout:" /usr/lib/group | sudo tee -a /etc/group > /dev/null
sudo usermod -aG dialout <username>

Logout/Restart the machine and you will now be in the dialout group on the host. Enter your distrobox. The device will still show as being owned by nfsnobody, but distrobox sets the podman flag to propagate your groups.

2 Likes

@m2Giles thanks for the reply.

I installed Thonny using Discover, i.e. flatpak, then opened it with Gearlever, which added a launcher. Very convenient!

I tried the command you suggested but couldn’t get it to work initially. It didn’t like the regular expression apparently, so I ended up with just grep dialout and that worked. For good measure I added nfsnobody as well.

Did the usermod and it worked. I can now use Thonny to talk to my microcontroller!

Thanks.

2 Likes

sorry, fixed the regex.