09-30-04 01:09 AM
kushal.agarwal@gmail.com (Kushal Agarwal) writes:
> Hello,
>
> 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.
getgroups() followed by getgrgid() for each of these.
At least on Solaris (you didn't specify the platform).
And please learn to crosspost instead of multipost.
And have a nice day.
Dragan
--
Dragan Cvetkovic,
To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer
!!! Sender/From address is bogus. Use reply-to one !!!
[ Post a follow-up to this message ]
|