When I use a Terminal window in the console using vmware vSphere as myself, 'id' only shows I'm a member of the main group (ie group in /etc/passwd).
However, when I login remotely via ssh, 'id' now shows all the groups of which I'm a member.

This is a problem as, on the console, I can no longer sudo as it now thinks I'm not in the sudo group.

If I login to the vmware console as the user that installed Ubuntu, id correctly shows all the groups.

I added myself to /etc/group, /etc/gshadow by editting them and I can see no difference between how I'm set up in those files and how the Ubuntu installer user is setup.

What else do I need to fix so I can sudo from myself in the vmware console?

(I have tried logging in again many times)

I'm also a bit confused about what /etc/sudoers thinks is the admin group.
/etc/group has adm, not admin, but sudoers has groups admin & sudo (NO adm).
(I have seen postings in Ask Ubuntu saying in 12.04 group admin has been replaced by group sudo - maybe it is not a problem)

This question appears to be off-topic. The users who voted to close gave this specific reason:

"This describes a problem that can't be reproduced that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – Braiam, guntbert, BuZZ-dEE, Lucio, mikewhatever