Groups listed with 'id' are different
by SlowCoder from LinuxQuestions.org on (#5JV09)
I added myself (myuser) to the vboxusers group, and my /etc/groups file shows my user as a member of the vboxusers group.
Code:vboxusers:x:135:myuserWhen I execute the following as myuser:
Code:$ id myuser
uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),134(sambashare),135(vboxusers)
$ id
uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),134(sambashare)Why does the first show vboxusers, and the other one not?
Code:vboxusers:x:135:myuserWhen I execute the following as myuser:
Code:$ id myuser
uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),134(sambashare),135(vboxusers)
$ id
uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),134(sambashare)Why does the first show vboxusers, and the other one not?