Koozali.org: home of the SME Server

how to finde a groups id (GID) ??

cyberdude

how to finde a groups id (GID) ??
« on: March 07, 2004, 12:43:14 PM »
Hi!!

I have just instaled the lazy-admin tool, and is in the process of creating a larg number of users (200+)
i have in the user-manager pannel createt a new group to the users, but now i can't seam to find the GID of the group - this GID shoud be used in the lazy-admin tool so the users voud be added into the corect group...

Where shoud i look for this information ?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
how to finde a groups id (GID) ??
« Reply #1 on: March 07, 2004, 02:19:31 PM »
how about /etc/group.
......

Offline genzil

  • ***
  • 51
  • +0/-0
    • http://www.tuxx.org.uk
extra info
« Reply #2 on: March 07, 2004, 05:03:37 PM »
id [USERNAME] name will show the users id (uid), the users main group id (gid) and other groups id (groups).

So for me:
[craig@tuxx craig]$ id craig
uid=5008(craig) gid=5008(craig) groups=5008(craig),500(shared),5003(cg_admin),5004(usag)

Shows that I have an id of 5008, my main group id is 5008, and my other groups have an id of 500,5003 and 5004.
Smile :-)......