Re: BSD vs SYSV: setgroups()

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Mark Baker
Dátum:  
CC: exim-users
Tárgy: Re: BSD vs SYSV: setgroups()
On Wed, 16 Apr 1997, Philip Hazel wrote:

> If people could try this out as root on various other OS, I'd be
> grateful. Please post the results to save too many people doing it.


On linux:

    ROOT /home/mnb20/src>./testgid 
    count = 2
    0 24 
    setgroups(0,NULL) succeeded
    count = 0


    gid = 8
    count = 0



With the program modified to not attempt the setgroups(0,NULL) I get:

    ROOT /home/mnb20/src>./testgid2 
    count = 2
    0 24 
    setgroups(1,grouplist) succeeded
    count = 1
    0 
    gid = 8
    count = 1
    0