Re: add user to a group and logout/login to apply
On Sun, Feb 02, 2025 at 21:19:18 +0000, Joe wrote:
> For a simple DE, just cat /etc/group will check that a group add
> command worked. The next login will make use of the group membership.
That's correct, and also:
* "id USERNAME" (passing an argument) will tell you what that user's
group memberships will be when they login.
* "id" (no argument) tells you what your group memberships are *now*
in your current shell.
This may be easier than scanning the entire output of cat /etc/group,
or typing out a grep command. It becomes even more useful if your
system is using something other than /etc/group to define group
memberships (NIS, NIS+, LDAP, etc.).
Reply to: