How to view (primary) Group Members ?
Dear Linux Gurus, how to view all group members?
my code snippet is like below:
useradd -g yy u1
useradd -g yy u2
useradd -g yy u3
useradd -G yy u4
when i wanted to view the group members of group 'yy' in /etc/group, it only shows secondary group member i.e only u4. what is the problem? Why not showing other group members-u1,u2,u3?
I also used commands getent and groupmems, but they are showing only secondary group members i.e only u4 not others.
But when I used 'system-config-users', in group page, it shows all the users.
My doubt is how to view all the users belonging to group yy in terminal. which command to use?
Thanks in advance.
sorry for the grammatical mistakes.