Log off mandatory after adding a user to a group to take effect?

Hello

I have a group called "media" which has a 7 access to a directory with the same name, my username was not included in that group, after vimming /etc/group and adding myself to it, I notice that that group is not defined as one of my groups (by issuing the "groups" command). I know that if I log off and log in again, I will be there! But is there anyway to remove the hassle and just be there?

Cheers,
bijan

Sort of/no. You can start a new subshell with the group. Run

newgrp <groupname>

. If you have access to the group, you'll be given a new (sub shell). The "id" command can confirm this. If you're prompted for a password, the group is probably not properly added.