From owner-freebsd-questions@FreeBSD.ORG Sat Oct 4 09:48:27 2003 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 9832516A4B3 for ; Sat, 4 Oct 2003 09:48:27 -0700 (PDT) Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by mx1.FreeBSD.org (Postfix) with SMTP id ECF4343FB1 for ; Sat, 4 Oct 2003 09:48:26 -0700 (PDT) (envelope-from ecrist@tech-con-inc.com) Received: from c-24-245-12-69.mn.client2.attbi.com (mnslinky@24.245.12.69 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Oct 2003 16:48:26 -0000 From: Eric F Crist Organization: Tech-Con, Inc To: Mikko =?iso-8859-1?q?Ty=F6l=E4j=E4rvi?= , ecrist@adtechintegrated.com Date: Sat, 4 Oct 2003 11:47:36 -0500 User-Agent: KMail/1.5.2 References: <200310041045.41800.ecrist@tech-con-inc.com> <20031004092108.G3248@atlas.home> In-Reply-To: <20031004092108.G3248@atlas.home> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200310041148.20696.ecrist@tech-con-inc.com> cc: freebsd-questions@freebsd.org Subject: Re: PASSWD file hosed... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ecrist@adtechintegrated.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2003 16:48:27 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 04 October 2003 11:27 am, Mikko Ty=F6l=E4j=E4rvi wrote: > On Sat, 4 Oct 2003, Eric F Crist wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hello, > > > > I'm sure you're all getting sick of my being so vocal, but here goes > > anyway. > > > > I was messing around as root in KDE and found the KUser application. I > > tried adding a user (my girlfriend), and when done, nobody could log in= =2E=20 > > I managed > > Mmm... GUIs. > > > to boot into single user, which logged me in a toor. I had to mount the > > file systems r/w and finally got my username's password reset, after > > finding a bunch of format errors in the /etc/master.passwd file. My > > problem is that the was no root user listed, just toor and all the > > others. How can I change > > If your machine has been up and running for a while, you will have > backup files in /var/backup. Have a look at > /var/backups/master.passwd.bak. If it looks contains everything you want, > copy it to /etc/master.passwd. Otherwise just edit /etc/master.passwd and > add the root entry. The default one without password looks like: > > root::0:0::0:0:Charlie &:/root:/bin/csh > > Then run "pwd_mkdb -p /etc/master.passwd" and you're back in business. > > > this? Also, I've set the console as insecure, so it's going to ask me > > for a root password. > > This is controlled in the file "/etc/ttys". > > $.02, > /Mikko Mikko, Thanks for the reply. I found what you spoke of as you were probably sendi= ng=20 this reply. That's exactly what worked. However, the /etc/ttys file isn't= =20 editable if you're not root, so I simply changed my uid to 0 from single us= er=20 to edit these things. (turns out i didn't set the insecure mode correctly,= =20 anyways. Thanks for the help! =2D --=20 Eric F Crist AdTech Integrated Systems, Inc (952) 403-9000 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/fvnUWxy3JtXvWloRAqF+AJ9TN5Juqv5jj4hKPx+2P/EdMBmFiwCgs0WJ PY1xlKG/e0lT3AYiOsXha1s=3D =3DwEoj =2D----END PGP SIGNATURE-----