July 13, 2024, 09:46:50 PM

News : LinuxSolved.com Linux Help Community Forum..

Author Topic: groups command  (Read 9203 times)

Offline linuxboy

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

#grep vivian /etc/group
#grep dba /etc/group

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.