Debian Bug report logs - #296722
Add Unix.initgroups

version graph

Package: ocaml; Maintainer for ocaml is Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>; Source for ocaml is src:ocaml (PTS, buildd, popcon).

Reported by: Sunny Kalsi <sunnyk@student.unsw.edu.au>

Date: Thu, 24 Feb 2005 10:18:06 UTC

Severity: wishlist

Tags: fixed-upstream, upstream

Merged with 255245

Fixed in version ocaml/3.12.0-1

Done: Stéphane Glondu <glondu@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://caml.inria.fr/mantis/view.php?id=3047

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Sylvain Le Gall <sylvain.le-gall@polytechnique.org>:
Bug#296722; Package mldonkey-server. (full text, mbox, link).


Acknowledgement sent to Sunny Kalsi <sunnyk@student.unsw.edu.au>:
New Bug report received and forwarded. Copy sent to Sylvain Le Gall <sylvain.le-gall@polytechnique.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Sunny Kalsi <sunnyk@student.unsw.edu.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mldonkey-server: cannot add groups to mldonkey user
Date: Thu, 24 Feb 2005 21:08:48 +1100
Package: mldonkey-server
Version: 2.5.28-2
Severity: normal

I've got my shares & temporary directory in a fat32 drive, umask 002 (so
that the group, "disk", gets full access, but others do not).
Unfortunately, this means that the user mldonkey cannot write to the disk. Worse, adding groups to the mldonkey user doesn't fix the problem.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-rc2-mm3
Locale: LANG=en_AU.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)

Versions of packages mldonkey-server depends on:
ii  adduser                     3.59         Add and remove users and groups
ii  debconf [debconf-2.0]       1.4.30.11    Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  mime-support                3.28-1       MIME files 'mime.types' & 'mailcap
ii  ucf                         1.13         Update Configuration File: preserv
ii  zlib1g                      1:1.2.2-3    compression library - runtime

-- debconf information:
* mldonkey-server/max_hard_download_rate: 24
* mldonkey-server/launch_at_startup: true
  mldonkey-server/config_exist_no_options:
* mldonkey-server/plugin: Directconnect, Overnet, Bittorent
* mldonkey-server/mldonkey_group: mldonkey
* mldonkey-server/false_password:
* mldonkey-server/max_hard_upload_rate: 4
* mldonkey-server/password: (password omitted)
* mldonkey-server/max_alive: 666
* mldonkey-server/run_as_user: mldonkey
  mldonkey-server/reown_file: false
* mldonkey-server/mldonkey_niceness: 20
* mldonkey-server/config_exist_no_dir:
* mldonkey-server/fasttrack_problem:
  mldonkey-server/shared_directories: share
* mldonkey-server/mldonkey_dir: /var/lib/mldonkey
* mldonkey-server/restart_after_upgrade: false
* mldonkey-server/client_name: foobear[ARC]
  mldonkey-server/mldonkey_move: false
* mldonkey-server/mldonkey_umask: 0022



Information forwarded to debian-bugs-dist@lists.debian.org, Sylvain Le Gall <sylvain.le-gall@polytechnique.org>:
Bug#296722; Package mldonkey-server. (full text, mbox, link).


Acknowledgement sent to "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org>:
Extra info received and forwarded to list. Copy sent to Sylvain Le Gall <sylvain.le-gall@polytechnique.org>. (full text, mbox, link).


Message #10 received at 296722@bugs.debian.org (full text, mbox, reply):

From: "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org>
To: Sunny Kalsi <sunnyk@student.unsw.edu.au>, 296722@bugs.debian.org
Subject: Re: Bug#296722: mldonkey-server: cannot add groups to mldonkey user
Date: Thu, 24 Feb 2005 22:20:06 +0100
Hello,

On Thu, Feb 24, 2005 at 09:08:48PM +1100, Sunny Kalsi wrote:
> Package: mldonkey-server
> Version: 2.5.28-2
> Severity: normal
> 
> I've got my shares & temporary directory in a fat32 drive, umask 002 (so
> that the group, "disk", gets full access, but others do not).
> Unfortunately, this means that the user mldonkey cannot write to the disk. Worse, adding groups to the mldonkey user doesn't fix the problem.
> 

Yeah, this is a known problem :
- 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.

The solution :
set the primary group of mldonkey to "disk". This should help you to
circumvent the problem.

Let me know if it works.

Regard
Sylvain Le Gall




Merged 255245 296722. Request was from "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org> to control@bugs.debian.org. (full text, mbox, link).


Noted your statement that Bug has been forwarded to caml-bugs@pauillac.inria.fr. Request was from "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: upstream Request was from "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `mldonkey-server' to `ocaml'. Request was from "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>:
Bug#296722; Package ocaml. (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@liafa.jussieu.fr>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>. (full text, mbox, link).


Message #25 received at 296722@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@liafa.jussieu.fr>
To: Sylvain LE GALL <sylvain.le-gall@polytechnique.org>
Cc: 296722@bugs.debian.org
Subject: Re: Bug#296722: mldonkey-server: cannot add groups to mldonkey user
Date: Thu, 10 Nov 2005 18:57:55 +0100
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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>:
Bug#296722; Package ocaml. (full text, mbox, link).


Acknowledgement sent to "Sylvain Le Gall" <sylvain.le-gall@polytechnique.org>:
Extra info received and forwarded to list. Copy sent to Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>. (full text, mbox, link).


Message #30 received at 296722@bugs.debian.org (full text, mbox, reply):

From: "Sylvain Le Gall" <sylvain.le-gall@polytechnique.org>
To: Julien Cristau <jcristau@liafa.jussieu.fr>, 296722@bugs.debian.org
Subject: Re: Bug#296722: mldonkey-server: cannot add groups to mldonkey user
Date: Thu, 10 Nov 2005 21:08:40 +0100
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



Forwarded-to-address changed from caml-bugs@pauillac.inria.fr to http://caml.inria.fr/mantis/view.php?id=3047. Request was from Falk Hueffner <falk@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Forwarded-to-address changed from http://caml.inria.fr/mantis/view.php?id=3047 to http://caml.inria.fr/mantis/view.php?id=3D3047, merged-u=. Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (full text, mbox, link).


Forwarded-to-address changed from http://caml.inria.fr/mantis/view.php?id=3D3047, merged-u= to http://caml.inria.fr/mantis/view.php?id=3047. Request was from Pierre Habouzit <madcoder@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: fixed-upstream Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Sat, 04 Apr 2009 15:45:49 GMT) (full text, mbox, link).


Tags added: fixed-upstream Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Sat, 04 Apr 2009 15:45:50 GMT) (full text, mbox, link).


Changed Bug title to 'Add Unix.initgroups' from 'mldonkey-server: cannot add groups ( caml-bugs 3047 )' Request was from Stéphane Glondu <glondu@debian.org> to control@bugs.debian.org. (Sun, 18 Apr 2010 14:24:06 GMT) (full text, mbox, link).


Severity set to 'wishlist' from 'normal' Request was from Stéphane Glondu <glondu@debian.org> to control@bugs.debian.org. (Sun, 18 Apr 2010 14:24:06 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 17 May 2011 07:40:53 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Nov 25 03:55:43 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.