November 21, 2024, 05:53:36 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: groups command  (Read 13272 times)

Offline linuxboy

  • New Member
  • Posts: 1
groups command
« on: August 25, 2016, 10:43:43 AM »
Hi
when I use command groups it shows discrepancy with /etc/groups
#groups vivian
vivian : dba admin

#grep vivian /etc/group
admin:x:2201:vivian
#grep dba /etc/group
dba:x:2015:

dba a is a group local to system, Could someone explain why this is showing like this


Offline dalek

  • LST CareTaker
  • Crescent
  • *****
  • Posts: 243
Re: groups command
« Reply #1 on: August 25, 2016, 11:24:28 AM »
I don't know why it is doing that but I get similar results here.  I'm listed in a lot of groups in /etc/groups but the groups command only shows a few of them.  Perhaps they are not "active" or something??  It's interesting.