[Pkg-shadow-devel] Issue with concurrent usage of gpasswd
Nicolas François
nicolas.francois at centraliens.net
Sat May 19 08:54:59 UTC 2012
Hello,
On Fri, Apr 13, 2012 at 11:27:11AM +0200, lboillet69 at gmail.com wrote:
>
> On a Debian Lenny system, I had the issue where these two commands
> were executed at the same time:
> adduser foo bargroup
> adduser foo2 bargroup
>
> The unexpected result was that only foo2 was added to bargroup. I
> looked at the changelog of the shadow program and from that I would
> assume that this behaviour is the same with the later versions.
>
> I guess that gpasswd (which is called by the adduser script) does not
> lock /etc/group? Or is it a bug?
gpasswd locks /etc/group. It should have been the case also in lenny.
If you send me a script which can be used to reproduce this issue, I can
give it a try.
--
Nekral
More information about the Pkg-shadow-devel
mailing list