Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
How to check group membership
Results 1 to 8 of 8

Thread: How to check group membership

  1. #1
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    How to check group membership

    My distro: Debian Woody with no X.

    How can I check

    1. What users belongs to the given group?

    2. what a given user belongs to what groups?

    TIA ....

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    419

    Re:How to check group membership

    cat /etc/group ???

  3. #3

    Re:How to check group membership

    [quote author=Compunuts link=board=12;threadid=5150;start=0#50942 date=1033305514]
    1. What users belongs to the given group?
    [/quote]
    do what prae said!


    [quote author=Compunuts link=board=12;threadid=5150;start=0#50942 date=1033305514]
    2. what a given user belongs to what groups?
    [/quote]
    #1 should do it this will also do it groups username


  4. #4
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:How to check group membership

    Nah, this will show all the group. I want a specific group and result be displayed.

    For example, if I want for the group named "web" then I want the program to show the IDs that belongs to the group "web". Cat /etc/group will show ALL of the groups which is not very useful and too much work to filter it through.

  5. #5

    Re:How to check group membership

    [quote author=Compunuts link=board=12;threadid=5150;start=0#50991 date=1033370676]
    Nah, this will show all the group. I want a specific group and result be displayed.

    For example, if I want for the group named "web" then I want the program to show the IDs that belongs to the group "web". Cat /etc/group will show ALL of the groups which is not very useful and too much work to filter it through.
    [/quote]

    what about grep "idnumberofgroup" /etc/passwd /etc/group ? that should print everything from the password file as well as from the group file.

  6. #6
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:How to check group membership

    well, doesnt kde have kuser, that can graphically do what you want. It allows you to use a pulldown IIRC to choose the group or you can quick look it up in the list and change it accordingly. Its a thought if you dont wanna do a bunch of commands to get it done.

  7. #7
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:How to check group membership

    [quote author=Schotty link=board=12;threadid=5150;start=0#51066 date=1033446718]
    well, doesnt kde have kuser, that can graphically do what you want.
    [/quote]
    Yes it does. And Gnome have User Manager tool but as I said in my first post, that system have no X running .....

  8. #8
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:How to check group membership

    [quote author=gorn link=board=12;threadid=5150;start=0#51061 date=1033446078]
    what about grep "idnumberofgroup" /etc/passwd /etc/group ? that should print everything from the password file as well as from the group file.
    [/quote]
    Yeah, this works pretty good. Instead of idnumberofgroup, the nameofgroup work as well ...

    Thanks.

Similar Threads

  1. NIS client group membership
    By handband in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 01-14-2010, 02:11 AM
  2. Group Policy
    By countach44 in forum Windows - General Topics
    Replies: 0
    Last Post: 05-03-2005, 03:58 PM
  3. How to move a user from group to group
    By Compunuts in forum Linux - General Topics
    Replies: 3
    Last Post: 10-01-2002, 04:19 AM
  4. What's up with the SETI group?
    By Kernel_Killer in forum Linux - Software, Applications & Programming
    Replies: 17
    Last Post: 08-30-2002, 09:24 PM
  5. adding users:  own group or common group
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 05-26-2002, 03:17 AM

Bookmarks

Posting Permissions

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