From owner-freebsd-questions Tue Aug 6 0: 4:37 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 16FEA37B400; Tue, 6 Aug 2002 00:04:22 -0700 (PDT) Received: from pd6mo2so.prod.shaw.ca (h24-71-223-10.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 811F043E6E; Tue, 6 Aug 2002 00:04:21 -0700 (PDT) (envelope-from desmond.lee@shaw.ca) Received: from pd5mr2so.prod.shaw.ca (pd5mr2so-qfe3.prod.shaw.ca [10.0.141.233]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0E00LGYU9WCJ@l-daemon>; Tue, 06 Aug 2002 01:03:32 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca (pn2ml5so-qfe0.prod.shaw.ca [10.0.121.149]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0E004MEUAXOO@l-daemon>; Tue, 06 Aug 2002 01:04:09 -0600 (MDT) Received: from wetworks (h24-77-108-85.vc.shawcable.net [24.77.108.85]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with SMTP id <0H0E00I18UAQD5@l-daemon>; Tue, 06 Aug 2002 01:04:09 -0600 (MDT) Date: Tue, 06 Aug 2002 00:07:28 -0700 From: Desmond Lee Subject: some questions about upgrade and /etc/ files To: freebsd-questions , scott@bsdprophet.org, dmp@pantherdragon.org, kstewart@owt.com, grog@FreeBSD.org Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal 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 Hi there So, what i've been trying to do is upgrade from version 4.4 to 4.6. I've gotten as far as trying the 'make installworld' command. Now, i've run into problems where i stupidly ran 'mergemaster -p' and didn't back up my etc directory. So, thanks to some help from you guys i've located the back ups of the /etc/group and /etc/master.passwd in the /var/backups dir. I copied the backups to /etc/ and then did a 'pwd_mkdb /etc/master.passwd' So, now i'm able to log into the os and i can resume the upgrade. Here are some questions that i'm hoping that some more experience users can help me with: 1. Now, i'm just wondering, since i did a blind mergemaster i dunno what files i messed up in my /etc/ directory, so i'm just wondering... does restoring the backups of the /etc/group and /etc/master.passwd ensure that my /etc/ dir was like it was from before? Are there possibly lots of other files that i have monkeyed with and are now messed up? If so,... how can i restore the files in the /etc/dir?... i think darren mentioned getting it from the cvs... but how does this work since the /etc/ files are setup custom to my system... ie groups and passwords? Like i understand that you can just get a fresh set of /etc/ files from anywhere in the source tree, but isn't this bad because i need to keep the info that is already in the /etc/ files that exist? 2. I did what was suggested and modified the /etc/group and /etc/master.passwd files by hand and updated the cvs tags at the top of the file the same as the file where the changes are comming from (ie. i changed the first lines of /etc/group, which are the cvs tag, to be the first lines of /usr/src/etc/group). Now, when i cd into '/usr/src' and then try 'make installworld' i get an error message "ERROR: Required smmsp user is missing, see /usr/src/UPDATING'. But i have already hand editied the /etc/group and /etc/master.passwd files to do exactly this? Is there a step i'm missing? Do i have to do a 'pwd_mkdb' or something like that? Um... if it's not too much trouble, can some one tell me what commands to use to grab stuff from cvs? Like,... do i do somthing like "check out ". I'm not sure what the names of the tags are and stuff. 3. So, because of step 2 above, i tried to do a 'mergemaster -p' again but now it says that it can't find /etc/make.conf.... so like what happened? Did i accidentally delete the file or something? When i do a 'locate make.conf' it shows up in a bunch of places 3 or which are the following: /etc/default/make.conf /usr/share/examples/etc/default/make.conf /usr/src/etc/defaul/make.conf .... 4. Just to check, i was told i have to run 'mergemaster -p' before a build world to see what files need changing, then have to change thoes files by hand and make sure the cvs tags updated. Then i do the 'make installworld' and then do a 'mergetmaster -p' again to add changes to any of the /etc/* files that may have changed with the upgrade to the latest stable version. Is this correct. So basically, the first call to 'mergemaster -p' is so that the 'make installworld' can succeed and the 2nd call to 'mergemaster -p' is so that the new version of freebsd has is in sync with your /etc/* config files... correct? Thanks so much for your help and patience, it's greatly appreciated regards Desmond To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message