Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2014 17:30:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 192138] pw useradd and pw groupadd existence check races
Message-ID:  <bug-192138-8-Zi36T0iBFf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192138-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192138-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192138

Mateusz Guzik <mjg@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjg@FreeBSD.org

--- Comment #1 from Mateusz Guzik <mjg@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192138-8-Zi36T0iBFf>