[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: How to retrieve a users group memberships?
From:       Alex Zepeda <jazepeda () pacbell ! net>
Date:       2002-02-10 6:20:14
[Download RAW message or body]

On Sat, Feb 09, 2002 at 08:08:25PM -0500, Mirko Boehm wrote:

> Ideally, the return would be an array of group names or group IDs.

Loop thru getgrent and check for the user you're looking for in each group
entry.  This is probably more portable than getgrouplist (which is a
4.4BSD function that does essentially that loop).

http://www.freebsd.org/cgi/man.cgi

- alex
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic