why is it that when I execute
groups the output doesn't contain the adm group, while the output of
groups $USER has it? The user is supposed to be in that group.
If you have just added a user to a group, you will need a log out and log back in in order to acquire the new credentials. For example:
And if I log out and log back in: