$ id
$ id grid
Ensure that Oracle user group and user and the user terminal window process you are using have group and user IDs are identical.
For example:
uid=54322(grid) gid=54321(oinstall) groups=54321(oinstall),54322(grid,asmadmin,asmdba)
$ id grid uid=54322(grid) gid=54321(oinstall) groups=54321(oinstall),54322(grid,asmadmin,asmdba)