From owner-freebsd-questions@FreeBSD.ORG Wed May 19 08:22:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A10D816A4CE for ; Wed, 19 May 2004 08:22:48 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62AA743D48 for ; Wed, 19 May 2004 08:22:47 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i4JFMJsg084382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 May 2004 16:22:19 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i4JFMJ41084381; Wed, 19 May 2004 16:22:19 +0100 (BST) (envelope-from matthew) Date: Wed, 19 May 2004 16:22:19 +0100 From: Matthew Seaman To: Mark Teel Message-ID: <20040519152218.GB83685@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Mark Teel , freebsd-questions@freebsd.org References: <40AB6DDC.5050706@teel.ws> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tsOsTdHNUZQcU9Ye" Content-Disposition: inline In-Reply-To: <40AB6DDC.5050706@teel.ws> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Cannot Login After Using Kuser to setup Accounts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 15:22:48 -0000 --tsOsTdHNUZQcU9Ye Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 19, 2004 at 09:23:24AM -0500, Mark Teel wrote: > On a fresh install of FreeBSD 5.2, after I add a user via kuser, when I= =20 > logout I cannot log back in! > I get a message stating that the "accound" has expired, even for the=20 > root user. >=20 > Please help as this has rendered my system unusable. Hmmm... This sounds like a bug in KDE that was fixed some months ago. It would scramble the contents of the /etc/master.passwd file. To get the system back into a working state, reboot into single user mode (ie. wait until the 10 second countdown before booting the kernel, hit a key to interrupt and then type 'boot -s' and then just hit return when prompted to choose a shell. Now you should be able to restore the master.passwd file from the backup copy automatically kept in /var/backups. Try the following series of commands: # fsck -p # swapon -a # mount -a # cd /etc # mv master.passwd master.passwd-`date +%Y%m%d` # cp /var/backups/master.passwd.bak master.passwd # pwd_mkdb=20 # reboot That should restore the password file to the state it was before you tried the changes that caused all of the trouble, and you should now be able to log in. If you haven't got a good copy of a password file in /var/backups, you can use the default installation password file =66rom /usr/src/etc/master.passwd instead, but remember to set a root password immediately after you copy it into /etc. Once you're back up and running properly, update your ports tree using cvsup(1) and install the latest versions of the KDE software -- using portupgrade(1) [from the sysutils/portupgrade port] is probably the most pleasant way to do that, but be sure and check in /usr/ports/UPDATING to see if there are any special measures you need to take. Or you can grab precompiled packages from the FreeBSD FTP servers. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --tsOsTdHNUZQcU9Ye Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAq3uqiD657aJF7eIRAspDAJwIkNWpuhBbrAitgKHh6h0DHhArgACeMny1 Hw6KWBaHgqN+PmYEUIi8C+c= =Vo/H -----END PGP SIGNATURE----- --tsOsTdHNUZQcU9Ye--