Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As a non-privileged user (your current userid is assumed):

$ groups to see just the list of group names that you belong to.

$ id to see uid, gid and all supplemental group names, with associated gid's, that you belong to.

As a privileged user (to see details of other user accounts):

$ sudo groups USERID

$ sudo id USERID

$ sudo usermod -aG GROUP1[,GROUP2]... USERID to append additional, supplemental groups to the userid. The -a is used to append groups; without it you will replace the existing supplemental list of groups.