Find the answer to your Linux question:
Results 1 to 4 of 4
Hi Frndz I want a command to find users in a group expect "system-config-users". I want it in terminal. Thanks in Advance....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie raji10k's Avatar
    Join Date
    Aug 2008
    Posts
    117

    How to find users in group


    Hi Frndz

    I want a command to find users in a group expect "system-config-users".

    I want it in terminal.

    Thanks in Advance.

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Do you mean:
    Code:
    cat /etc/group|grep "groupname"
    Can't tell an OS by it's GUI

  3. #3
    Linux Newbie raji10k's Avatar
    Join Date
    Aug 2008
    Posts
    117
    Hi Freston

    It Doesn't work freston It shows like this It doesn't shows users in that group and am using RHEL - 4.


    #cat /etc/group|grep crank
    crank:503:



    Plz Help Me

  4. #4
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    That produces all the members of the group "crank", of which you are the only one. Try searching users or admin. If you want to find out what groups a specific user is part of, try using groups
    Code:
    groups crank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •