Bug#296722: mldonkey-server: cannot add groups to mldonkey user
Hello,
On Thu, Nov 10, 2005 at 06:57:55PM +0100, Julien Cristau wrote:
> On Thu, Feb 24, 2005 at 22:20:06 +0100, Sylvain LE GALL wrote:
>
> > - mldonkey start as root
> > - mldonkey daemonize
> > - mldonkey changes to user mldonkey:mldonkey
> > - here comes the problem : mldonkey cannot use all the group of mldonkey
> > user, only the primary one ( ie mldonkey in standrad install )
> >
> > The problem comes from ocaml. There is not binding for the function
> > setgroups. So i cannot set all the group of a user.
> >
> Hi,
>
> can't the necessary binding for setgroups() be added to mldonkey or some
> library other than the standard Unix lib? I think this would be easy and
> provide a workaround for this issue, which wouldn't need an addition to
> the standard library (although I agree that setgroups() has its place in
> the stdlib, since getgroups() is already there).
>
> Cheers,
> Julien Cristau
>
Well, maybe. But i don't really want to hand write this part, only for
mldonkey_server. If one day, i build a daemonize library for ocaml, i
will use it for mldonkey_server...
If you think it is a real problem, please send me a little patch. For
now, i have only submitted this bug to ocaml BTS.
(i know, i am lazy...)
Kind regard
Sylvain Le Gall
Reply to: