From owner-freebsd-bugs Thu Mar 14 15:40:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6B0EC37B419 for ; Thu, 14 Mar 2002 15:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2ENe2F46399; Thu, 14 Mar 2002 15:40:02 -0800 (PST) (envelope-from gnats) Date: Thu, 14 Mar 2002 15:40:02 -0800 (PST) Message-Id: <200203142340.g2ENe2F46399@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Giorgos Keramidas Subject: Re: i386/35816: no one can change password, because "passwd DB is locked" Reply-To: Giorgos Keramidas Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/35816; it has been noted by GNATS. From: Giorgos Keramidas To: "Crist J. Clark" Cc: bug-followup@freebsd.org Subject: Re: i386/35816: no one can change password, because "passwd DB is locked" Date: Thu, 14 Mar 2002 21:46:34 +0200 On 2002-03-13 15:00, Crist J. Clark wrote: > > - User A runs 'chpass foo'. > > - Before user A finishes, user B runs 'chpass foo' too. > > - User A deletes account of user C. > > - User B adds account of user D. > > - User A commits changes. > > - User B commits changes. > > > > Is the account of C still erased? > > I think the issue here is the mindset that chpass(1) must take a > complete copy of master.passwd, have the user perform some action on > it, and then save the complete copy back. I don't see why it would > work this way. Read info on our user being modified from > master.passwd, have the user perform changes just on the data for this > one user, _now_ lock and read master.passwd, incorporate the changes > on that one user, and release the lock. Still can be problematic, when two admins attempt to edit the information of the same user. I don't think that dropping locking from chpass is a nice idea, to make things 'easier for admins who can't use ps(1)' is a good idea. But this is of course, MHO. Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message