Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2011 10:05:05 +0000 (GMT)
From:      "Thomas Mueller" <mueller6727@bellsouth.net>
To:        freebsd-current@freebsd.org
Subject:   Re: Upgrade from source to RC1: problems with /etc : lost users and dbus
Message-ID:  <20111028100508.47C141065673@hub.freebsd.org>
References:  <CAFHbX1%2BWPM0E%2BUGpKKVb8WoNyeYBOp5GdrF59E3sgRp1TM8VRg@mail.gmail.com> <20111027102208.88BFB106564A@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
from Tom Evans <tevans.uk@googlemail.com>:

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!

When I had this problem, I was itching to get to bed.  But since then, I checked /etc and the backup, and found master.passwd, copied it back, still have to boot into RC1 to see if the fix works.

Update: the fix didn't work, even though I have the necessary things in master.passwd. 

>From the boot messages:

Starting dbus.
Unknown username "polkit" in message bus configuration file
Unknown username "haldaemon" in message bus configuration file
Unknown username "avahi" in message bus configuration file
Unknown username "pulse" in message bus configuration file
Failed to start message bus: Could not get UID and GID for username "messagebus"
/etc/rc: WARNING: failed to start dbus
Starting hald.
Updating motd:.
Starting ntpd.
Configuring syscons: keymap blanktime.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.


Update: the fix didn't work, even though I have the necessary things in master.passwd and /etc/rc.conf . 

>From the boot messages:

Starting dbus.
Unknown username "polkit" in message bus configuration file
Unknown username "haldaemon" in message bus configuration file
Unknown username "avahi" in message bus configuration file
Unknown username "pulse" in message bus configuration file
Failed to start message bus: Could not get UID and GID for username "messagebus"
/etc/rc: WARNING: failed to start dbus
Starting hald.
Updating motd:.
Starting ntpd.
Configuring syscons: keymap blanktime.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.



Update: the fix didn't work, even though I have the necessary things in master.passwd. 

>From the boot messages:

Starting dbus.
Unknown username "polkit" in message bus configuration file
Unknown username "haldaemon" in message bus configuration file
Unknown username "avahi" in message bus configuration file
Unknown username "pulse" in message bus configuration file
Failed to start message bus: Could not get UID and GID for username "messagebus"
/etc/rc: WARNING: failed to start dbus
Starting hald.
Updating motd:.
Starting ntpd.
Configuring syscons: keymap blanktime.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.

...

I still can't login as any nonroot user, even though I see the lines in /etc/master.passwd, which I copied back from backup, and if I startx as root, there is no response to keyboard or mouse.

How do I recover?  Do I have to copy the whole BETA2 /etc and possibly run mergemaster -p again?


How does one run mergemaster without running roughshod over existing configuration?

I did hit d (delete) on some files I didn't want to trash, such as mail.rc and the ports directory configuration.

I wish there were a way to do a practice run with mergemaster without destroying anything, just as a medical student may practice on human cadavers, or flying in a flight simulator, where the consequences of doing the wrong thing are not disastrous.  That way, I'd know what to do for next time.

I could make one backup at the beginning, before the first mergemaster -p, and then another after that, before the second mergemaster.

I remember etcupdate from NetBSD, see it in FreeBSD ports/sysutils, but not in FreeBSD base system.

Tom




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111028100508.47C141065673>