Re: Get User Groups
From: jpd (read_the_sig_at_do.not.spam.it)
Date: 09/30/04
- Next message: jpd: "Re: Partitioning Prob"
- Previous message: Dragan Cvetkovic: "Re: root loggin in to console without network?"
- In reply to: Kushal Agarwal: "Get User Groups"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 15:09:47 +0000 (UTC)
On 2004-09-29, Kushal Agarwal <kushal.agarwal@gmail.com> wrote:
> I am wondering what is the system call to get all the groups a user
> belongs to. I need both the group ids and the group names. I need to
> make this call from a c++ module.
Use getgrent(3) to cycle through the groups file and and reconstruct
the list.
BTW, you're in the wrong group, and you're multiposting. Read up on
``netiquette'' as to what those are and why you should do neither.
-- j p d (at) d s b (dot) t u d e l f t (dot) n l .
- Next message: jpd: "Re: Partitioning Prob"
- Previous message: Dragan Cvetkovic: "Re: root loggin in to console without network?"
- In reply to: Kushal Agarwal: "Get User Groups"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|