You can do

% newgrp <groupname>

and the shell that it is executed in will then show the change.

% groups

will prove that you are in the group currently.

But in order for new terminals that you spawn from an X session to have
the new group you must log out and log back in.  That is correct.

# - dan lamotte -            - lamotte {at} cs.umn.edu - #####
## - systems staff -      - uofm -      - cs department - ####
### fpr: 690F C162 4AE5 F85F FE94 88E5 D123 FBAC 0852 A280 ###


Zac Slade wrote:
> On Tuesday 11 April 2006 12:57, Anthony E. Caudel wrote:
>> Maybe I'm not doing something right.  From KDE's konsole, I invoked a
>> new shell with "bash -l" and then ran "id" but it did not reflect the
>> new group.
> No you did nothing wrong.  I double checked it and it's as I feared.  You 
> have 
> to log out and back in for the changes to be reflected.  Any new logins will 
> reflect the group change, but not existing ones.   If you ssh into your 
> system that login will reflect the new group, just as if you logged out and 
> back into X the changes will be reflected.
> 
> This is a shortcoming of the Unix strategy for dealing with users.  They are 
> immutable after they log in.
-- 
gentoo-user@gentoo.org mailing list

Reply via email to