Date: Mon, 12 Mar 2001 09:28:13 -0500 (EST) From: Dru <genisis@istar.ca> To: "Daniel Conlon [Donhost]" <daniel@donhost.co.uk> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pw corrupts files Message-ID: <Pine.BSF.4.21.0103120924310.49914-100000@istar.ca> In-Reply-To: <NCBBIPFNJNGFMHHDAHMFAEAKDCAA.daniel@donhost.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Daniel, You may find the "enteruser" script to be helpful here. You'll find the script and an excellent article regarding its use at: http://www.de.daemonnews.org/199908/enteruser.html HTH, Dru On Mon, 12 Mar 2001, Daniel Conlon [Donhost] wrote: > I have a FreeBSD 3.4 box with about 4000 users. I use the 'pw' program > called from scripts to create new accounts and to change passwords. On this > system there is nothing other than the 'pw' program which would have cause > to change the password files on the system. Users do not have shell access > etc. so it is only the scripts and thus 'pw' which deals with the password > files. > > On two separate occasions the password files on the system have become > corrupted. On the first occasion, /etc/master.passwd was truncated about > half way down and /etc/passwd was left unharmed. On the second occasion both > /etc/master.passwd and /etc/passwd were truncated at the same point once > again about half way down. > > I have read of similar problems in the list archives occurring on busy boxes > where 'pw' is being invoked regularly but have found no explanation or fix. > This is obviously a serious problem as on both occasions the root user has > been removed from the system. > > Any pointers or help you could offer on this would be greatly appreciated. > > Kind Regards, > > Daniel Conlon > Donhost Ltd. > > ########################## > Tel: +44 (0)800 956 7642 > Mob: +44 (0)7939 268 799 > Fax: +44 (0)8707 41 51 07 > http://www.donhost.co.uk > ########################## > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103120924310.49914-100000>