Get Unix Groups
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Get Unix Groups




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Get Unix Groups  
Kushal Agarwal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-30-04 01:09 AM

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.

Thanks,

Kushal





[ Post a follow-up to this message ]



    Re: Get Unix Groups  
Dragan Cvetkovic


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:11 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register