I stumble across a weird behaviour today. After adding a user to a new group like so :
# gpasswd -a test myuser
then connecting to a new bash session, here are the result for
myuser@mycomputer$ groups wheel myuser myuser@mycomputer$ groups myuser wheel myuser test
Only if I reboot the output of
groups will be the same as
groups myuser, but not necessary showing the groups in the same order.
So my question is simple : why ?