Let me try again, here is an example below after added user to cdrom group. Currently in bash.
Code:
user@system$ groups
users
user@system$ cat /etc/group | grep user
users:x:100:user
cdrom:x:1212:user
user@system$ . .bashrc
user@system$ groups
users
user@system$ . /etc/profile
user@system$ groups
users
user@system$ . /etc/bashrc
user@system$ groups
users
<cntr><shift>n #### open new shell in konsole so rereads env
user@system$ group
users
user@system$ ssh localhost
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
user@localhost's password:
Last login: Mon Aug 1 09:09:30 2005
user@localhost$ group
users cdrom
No matter what shell config I re-source, it doesn't see the group. The only way that I have found was to log out then back in. Or ssh to the same box. I want to not have to do this, specifically, how is the system reading the users groups?
Hope this explains it better.
Pete