Bob Goldberg
2008-Aug-26 18:23 UTC
Bug#496683: adduser assigns wrong group if setgid=set in parent
Package: adduser Version: 3.102 Severity: important The home directory that adduser creates does not properly inherit the group name from its parent (when setgid is set). ie: In the adduser.conf file, I have DIR_MODE="2770", and the parent directory in which the user''s dir. is created is mode=2771. When adduser creates the home dir. its GID is set to the users'' group, not the parent dir''s group. If DIR_MODE="0770", the users'' dir. is not setgid=yes -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, ''stable'') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages adduser depends on: ii debconf [debconf-2.0] 1.5.11etch2 Debian configuration management sy ii passwd 1:4.0.18.1-7 change and administer password and ii perl-base 5.8.8-7etch3 The Pathologically Eclectic Rubbis adduser recommends no packages. -- debconf information: adduser/homedir-permission: true
Stephen Gran
2008-Aug-26 20:10 UTC
[Adduser-devel] Bug#496683: Bug#496683: adduser assigns wrong group if setgid=set in parent
severity 496683 normal thanks This one time, at band camp, Bob Goldberg said:> Severity: importantInteresting, but doubtful.> The home directory that adduser creates does not properly inherit the > group name from its parent (when setgid is set). > ie: In the adduser.conf file, I have DIR_MODE="2770", and the parent > directory in which the user''s dir. is created is mode=2771. When > adduser creates the home dir. its GID is set to the users'' group, not > the parent dir''s group. If DIR_MODE="0770", the users'' dir. is not > setgid=yesParse error. Can you explain what you mean? Adduser makes the directory, then chowns/chgrps it the new user and group. I think you''re trying to say that you expect to be able to set the parent directory setgid, and the new home directories adduser creates will also have this group (and/or be setgid) even when the config file settings say to do something else. If that''s actually what you''re saying, I''m afraid it won''t work like this. -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran at debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080826/f619fe31/attachment.pgp
Marc Haber
2011-Nov-23 10:32 UTC
[Adduser-devel] Bug#496683: Bug#496683: adduser assigns wrong group if setgid=set in parent
On Tue, Aug 26, 2008 at 09:10:30PM +0100, Stephen Gran wrote:> This one time, at band camp, Bob Goldberg said: > > The home directory that adduser creates does not properly inherit the > > group name from its parent (when setgid is set). > > ie: In the adduser.conf file, I have DIR_MODE="2770", and the parent > > directory in which the user''s dir. is created is mode=2771. When > > adduser creates the home dir. its GID is set to the users'' group, not > > the parent dir''s group. If DIR_MODE="0770", the users'' dir. is not > > setgid=yes > > Parse error. Can you explain what you mean?Hi Bob, can you please try to answer the questiont hat Stephen asked three years ago? I plan on closing this bug by the end of 2011 if you don''t explain. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062