setegroups?
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 > setegroups?




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

    setegroups?  
Michael B Allen


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


 
11-17-05 01:48 AM

I believe the proper way to change one's identity is with the following:

if (setgid(gid) == -1 ||
setgroups(1, &gid) == -1 ||
setuid(uid) == -1) {
perror("got root?");
return -1;
}

But what is the proper method if you're using seteuid and setegid? Is
there no setegroups concept? Why not? Will group membership or lack
thereof be respected while running seteuid/setegid?

Thanks,
Mike






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:48 AM.      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