[Bug 192138] pw useradd and pw groupadd existence check races

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 26 17:30:37 UTC 2014


Mateusz Guzik <mjg at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |mjg at FreeBSD.org

--- Comment #1 from Mateusz Guzik <mjg at FreeBSD.org> ---
Not only that, pw is racy in general w.r.t other operations.

An acceptable way around this would be to have a lock (say, /etc/.pw.lock)
which is taken at the beginning and released at the end. Preferably also
supported by other tools playing with passwd (and other files).

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list