Attempting to install MythTV on Ubuntu 18.04, I ran...
sudo usermod -a -G mythtv roger
...and logged out and back in. This should be sufficient. But: my group memberships didn't change.
I had to reboot. Why?
Attempting to install MythTV on Ubuntu 18.04, I ran...
sudo usermod -a -G mythtv roger
...and logged out and back in. This should be sufficient. But: my group memberships didn't change.
I had to reboot. Why?
Likely because /etc/gshadow was not updated (but don't ask me why that didn't happen as usermod should do that too; check /var/log/ if there is a notice). The 2 files important for groups are /etc/group
and /etc/gshadow
where gshadow supersedes group.
When both are correct logging out and in is enough to update the group for the user. If only the 1st was updated you will need to reboot or you can update gshadow with the grpconv command. Logging out and in is then enough.