From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 10:09:13 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 E271016A4BF for ; Fri, 29 Aug 2003 10:09:12 -0700 (PDT) Received: from web12808.mail.yahoo.com (web12808.mail.yahoo.com [216.136.174.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 4902643FB1 for ; Fri, 29 Aug 2003 10:09:12 -0700 (PDT) (envelope-from sky_tracker@yahoo.com) Message-ID: <20030829170912.67029.qmail@web12808.mail.yahoo.com> Received: from [209.188.66.29] by web12808.mail.yahoo.com via HTTP; Fri, 29 Aug 2003 10:09:12 PDT Date: Fri, 29 Aug 2003 10:09:12 -0700 (PDT) From: Dave Banning To: Joshua Oreman In-Reply-To: <20030829155530.GB20267@webserver> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: questions@freebsd.org Subject: Re: can't login as anyone - not even as root! 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: Fri, 29 Aug 2003 17:09:13 -0000 > Hmm.. Pretty long but only the last few screens are important. Problem's > kinda weird, > really. This is a *LAST DITCH EFFORT*, but try this. It may work. (Note: > this assumes > you've got system sources around). > > OK boot -s > # mkdir /var/oldpwd > # mv /etc/master.passwd /etc/passwd /etc/group /etc/pwd.db /etc/spwd.db > /etc/login.conf /var/oldpwd > # cp /usr/src/etc/master.passwd /etc/ > # cp /usr/src/etc/group /etc/ > # cp /usr/src/etc/login.conf /etc/ > # pwd_mkdb /etc/master.passwd > # passwd root > # exit > > And if it all fails, well, you've got your old passwd files in /var/oldpwd. > If it works, great! Now you get to merge your accounts. Nope. I actually had a backup /etc directory from a week ago. I replaced the entire directory with the backup. No go. I then reinstalled via ftp the basic user package and now all is well. On review I noticed some /bin directories ownership had it's permissions changed to one of my users. Then it came back to me that I had been changing some permissions on user directories to deal with a mail permission issue. I must have let an extra . or / slip somewhere in my chown'ing. I wanted to -find- the problem as a matter of interest, but in the end, I had to get things up and running as soon as possible, and reinstalling was the fastest. It reinstalled the basics and left the rest of my installation intact. Thanks for your time to review the log, and your interest and comments. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com