groups is more or less the same like id -Gn.
When you call
id -Gn user_name
then all groups are displayed the user belongs to. So far so good.
If you call
(so without a user as aparameter) the group membership of the current process (so your shell) is displayed.
If you change, the /etc/group this change does not get reflected to the already started processes.
Now when you are logged in as an user and su to root in order to edit /etc/group,
then you *have* to logout and login again so changes take effect and all new started
processes belong also the newly added group.
Last edited by Vlad-A; 06-09-2004 at 07:19 AM.