From owner-freebsd-current@FreeBSD.ORG Thu Oct 27 11:26:07 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2896106564A for ; Thu, 27 Oct 2011 11:26:07 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1DC458FC08 for ; Thu, 27 Oct 2011 11:26:06 +0000 (UTC) Received: from vhoffman.lon.namesco.net (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id p9RBQ3ox000565 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 27 Oct 2011 12:26:04 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4EA93FCB.7090109@unsane.co.uk> Date: Thu, 27 Oct 2011 12:26:03 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Thomas Mueller References: <20111027102208.88BFB106564A@hub.freebsd.org> In-Reply-To: <20111027102208.88BFB106564A@hub.freebsd.org> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Upgrade from source to RC1: problems with /etc : lost users and dbus X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2011 11:26:08 -0000 On 27/10/2011 11:22, Thomas Mueller 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 instance 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 /media/etcbackup-BETA2 > > and then copied back /media/etcbackup-BETA2/passwd (and group) to /etc > > but that didn't help. Other people have suggested what you have done to loose them. To get them back you need /etc/passwd /etc/master.passwd possibly /etc/group There should be a handy backup in /var/backups Also you will need to remake the db files, see man pwd_mkdb Vince > > 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 drive? > > The second invocation of mergemaster (after booting single-user) can wreak havoc on /etc . > > As I type this, I am in my older installation of FreeBSD 9.0-BETA1 but have access to RC1 partition. > > By the way, /etc/rc.conf remained intact, showing that hald_enable and dbus_enable are still there: > > > hostname="amelia2" > keymap=us.iso.kbd > ifconfig_re0="DHCP" > ifconfig_re0_ipv6="inet6 accept_rtadv" > sshd_enable="YES" > moused_enable="YES" > ntpd_enable="YES" > hald_enable="YES" > dbus_enable="YES" > > Tom > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"