You are not logged in.
When I create a new group and add myself to that group as superuser, command 'groups' doesn't list that group among others. It lists just those that I've been initially in (when creating my user via 'adduser'). Example:
# groupadd [group]
# gpasswd -a [user] [group] /OR/ usermod -G [group] [user]
# exit
$ groups
The group and only this group is visible if I do this (besides uid, gid and groups values):
# id [user]
Offline
AFAIR, you have to logout and login again for group changes to have an effect. Have you tried this yet?
Offline
Oops. Thanks for the help!
Offline
and ...
using the usermod-command, you need the -a option, ie
usermod -a -G {group} {user}
Otherwise you will only have the given {group} in addition to your default group.
Offline
There is also newgrp if you don't want to/can not log out/in
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline