[Pkg-shadow-devel] [patch] fix up useradd handling with usergroups
Nicolas François
nicolas.francois at centraliens.net
Sun Feb 24 13:58:29 UTC 2008
Hello Mike,
On Sun, Feb 24, 2008 at 07:05:07AM -0500, vapier at gentoo.org wrote:
> unfortunately, the exact details are fuzzy as this was posted to the old
> upstream shadow list quite a while ago before it died, and i dont think the
> mail archives are available for me to refer to.
>
> basically, useradd misbehaves when not using the "-g" option wrt the
> USERGROUPS_ENAB option. the useradd code has logic for handling of an '-n'
> flag, but it never fully implemented it.
>
> original Gentoo bug:
> http://bugs.gentoo.org/128715
Thanks for raising this topic.
There is one issue with your patch (for more details, see also
http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-February/006334.html)
The -n option currently exists in Debian, Fedora, and Gentoo with
different meanings. So I would prefer to use completely different options
and avoid incompatibilities.
I would currently prefer the attached patch (useradd-n.patch),
distributions could then add one of useradd-n.gentoo.patch or
useradd-n.debian.patch for backward compatibility.
Best Regards,
--
Nekral
-------------- next part --------------
A non-text attachment was scrubbed...
Name: useradd-n.gentoo.patch
Type: text/x-diff
Size: 352 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20080224/d93bacaa/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: useradd-n.debian.patch
Type: text/x-diff
Size: 333 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20080224/d93bacaa/attachment-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: useradd-n.patch
Type: text/x-diff
Size: 6955 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20080224/d93bacaa/attachment-0002.patch
More information about the Pkg-shadow-devel
mailing list