Date: Thu, 27 Oct 2011 12:06:22 +0100 From: Tom Evans <tevans.uk@googlemail.com> To: Thomas Mueller <mueller6727@bellsouth.net> Cc: freebsd-current@freebsd.org Subject: Re: Upgrade from source to RC1: problems with /etc : lost users and dbus Message-ID: <CAFHbX1%2BWPM0E%2BUGpKKVb8WoNyeYBOp5GdrF59E3sgRp1TM8VRg@mail.gmail.com> In-Reply-To: <20111027102208.88BFB106564A@hub.freebsd.org> References: <20111027102208.88BFB106564A@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 27, 2011 at 11:22 AM, Thomas Mueller <mueller6727@bellsouth.net> wrote: > I just finished the upgrade from source from 9.0-BETA2 to RC1, and I find= two problems. > > First, I lost my users; nonroot user names are not recognized, if for ins= tance I type > > passwd arlene > > I already tried to login as arlene with old password, no good. > > I copied the /etc directory to a backup on another disk > > cp -Rp /etc =C2=A0/media/etcbackup-BETA2 > > and then copied back /media/etcbackup-BETA2/passwd (and group) to /etc > > but that didn't help. > > Do I have to recreate nonroot users from scratch? > > Also, I got a warning about DBUS not starting. > > When I tried to startx as root, I got into X, but mouse and keyboard were= nonfunctional; > I did type Ctrl-Alt-F1 and Ctrl-C to get out of X. > > I think it was the second mergemaster part. > > Should I, as root and X not running, do > > mv /etc /etcbackup-RC1 > > and > > cp -Rp /media/etcbackup-BETA2 /etc > > where /media would be mount point for backup partition on USB 3.0 hard dr= ive? > > The second invocation of mergemaster (after booting single-user) can wrea= k havoc on /etc . > > As I type this, I am in my older installation of FreeBSD 9.0-BETA1 but ha= ve access to RC1 partition. > > By the way, /etc/rc.conf remained intact, showing that hald_enable and db= us_enable are still there: > > > hostname=3D"amelia2" > keymap=3Dus.iso.kbd > ifconfig_re0=3D"DHCP" > ifconfig_re0_ipv6=3D"inet6 accept_rtadv" > sshd_enable=3D"YES" > moused_enable=3D"YES" > ntpd_enable=3D"YES" > hald_enable=3D"YES" > dbus_enable=3D"YES" > > Tom > I have had this happen before, the PEBKAC. When running mergemaster, it will prompt you to install new passwd, master.passwd and group files - if you have added local users you must not say yes to this, you must either merge the changes in or keep your local one. If you still have a backup, you are probably missing just master.passwd. hald, dbus would fail to start since their users are no longer there. Once you've done this to your system once, you never want to do it again! Cheers Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFHbX1%2BWPM0E%2BUGpKKVb8WoNyeYBOp5GdrF59E3sgRp1TM8VRg>