Date: Fri, 29 Aug 2003 10:09:12 -0700 (PDT) From: Dave Banning <sky_tracker@yahoo.com> To: Joshua Oreman <oremanj@get-linux.org> Cc: questions@freebsd.org Subject: Re: can't login as anyone - not even as root! Message-ID: <20030829170912.67029.qmail@web12808.mail.yahoo.com> In-Reply-To: <20030829155530.GB20267@webserver>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030829170912.67029.qmail>