From owner-freebsd-questions Tue Oct 29 9:43:43 2002 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 7D2D637B401 for ; Tue, 29 Oct 2002 09:43:41 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F4CD43E3B for ; Tue, 29 Oct 2002 09:43:40 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g9THhTLf053683 for ; Tue, 29 Oct 2002 17:43:29 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g9THhONV053678 for freebsd-questions@FreeBSD.ORG; Tue, 29 Oct 2002 17:43:24 GMT Date: Tue, 29 Oct 2002 17:43:24 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: Problems with 4.7 upgrade (lost ownerships and users) Message-ID: <20021029174324.GA32331@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <000701c27f6c$f06dabf0$b858503f@yourus67pi6luv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c27f6c$f06dabf0$b858503f@yourus67pi6luv> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-11.2 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_02_03,USER_AGENT, USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 29, 2002 at 09:02:11AM -0800, Jim Krenz wrote: > Last night, I tried to upgrade my tiny P1 machine from FreeBSD 4.6 to 4.7. > I've upgraded the same machine from 4.2, 4.3, 4.4, and 4.5, and haven't had > problems until now. > > During the upgrade installation, one of the packages failed. Sorry, I didn't > note it down. The installer said that the upgrade failed, and that 4.7 was > not installed. Since it was late, I figured that I'd reboot, and try the > install again tomorrow night. > > When I rebooted, the system appeared to be 4.7. All of my users were gone. > Ownership of directories and files seem to have changed. And most important, > root had no password attached. > > So, here is my main question: Should I, a relative *nix newbie, try to fix > these issues? Or should I erase the disk, do a fresh install, and load up my > settings and websites from the most recent backup? You seem to have missed out the last step in the upgrade procedure, which is to merge your original /etc files with the default versions that are what you have installed now. The original files should be in /var/tmp/etc, unless you selected somewhere different. According to http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/sysinstall/installUpgrade.c?rev=1.82&content-type=text/x-cvsweb-markup /stand/sysinstall runs something like this to restore the /etc files: #!/bin/sh etcfiles='Xaccel.ini X11 adduser.conf aliases aliases.db amd.map auth.conf crontab csh.cshrc csh.login csh.logout cvsupfile dhclient.conf disktab dm.conf dumpdates exports fbtab fstab ftpusers gettytab gnats group hosts hosts.allow hosts.equiv hosts.lpd inetd.conf kerberosIV localtime login.access login.conf mail mail.rc make.conf manpath.config master.passwd modems motd namedb networks newsyslog.conf nsmb.conf nsswitch.conf pam.conf passwd periodic ppp printcap profile pwd.db rc.local rc.firewall rc.conf.local remote resolv.conf rmt sendmail.cf sendmail.cw services shells skeykeys spwd.db ssh syslog.conf ttys uucp' cd /var/tmp/etc [ -d /etc/upgrade ] && rm -rf /etc/upgrade mkdir /etc/upgrade for file in $etcfiles ; do if [ -r $file ] ; then mv /etc/$file /etc/upgrade/$file tar cf - $file | tar xpf - -C /etc || \ echo "Unable to resurrect your old /etc/$file" fi done After that, you should probably grab a copy of the RELENG_4_7_0_RELEASE sources into /usr/src and run mergemaster to iron out any remaining kinks. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message