id and groups reports wrong groups membership

Asked by A. Broustet

There is a discrepancy between "id username" and "id" :

a@a-Latitude-E6410:~$ id a
uid=1000(a) gid=1000(a) groupes=1000(a),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),44(video),46(plugdev),104(fuse),110(netdev),111(lpadmin),119(admin),122(sambashare),126(scanner),129(wireshark)

a@a-Latitude-E6410:~$ id
uid=1000(a) gid=1000(a) groupes=1000(a),129(wireshark)

gksudo and gedit doesn't work. But I can unlock admin access on system paramters.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
A. Broustet
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

andy@fileserver:~$ id
uid=1000(andy) gid=1000(andy) groups=1000(andy),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare)
andy@fileserver:~$ id andy
uid=1000(andy) gid=1000(andy) groups=1000(andy),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare)
andy@fileserver:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu precise (development branch)
Release: 12.04
Codename: precise

works ok here. what is the output of:

lsb_release -a; uname -a

Thanks

Revision history for this message
A. Broustet (ubuntu-amael) said :
#2

a@a-Latitude-E6410:~$ lsb_release -a; uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu precise (development branch)
Release: 12.04
Codename: precise
Linux a-Latitude-E6410 3.2.0-20-generic #32-Ubuntu SMP Thu Mar 22 02:22:46 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

By the way a logout - login did the trick : everything work fine now. What still stay strange is that I tried to launch a new terminal but it didn't worked. Had to logout from gnome/unity.

But I don't see why "id a" should give a different answer from "id" (I was of course logged under a).

I would appreciate any explanation about this.

Best.