[Adduser-devel] Bug#496683: Bug#496683: adduser assigns wrong group if setgid=set in parent
Stephen Gran
sgran at debian.org
Tue Aug 26 20:10:30 UTC 2008
severity 496683 normal
thanks
This one time, at band camp, Bob Goldberg said:
> Severity: important
Interesting, 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=yes
Parse 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
More information about the Adduser-devel
mailing list