Date: Mon, 06 Oct 2014 19:22:08 +0100 From: Mike Clarke <jmc-freebsd2@milibyte.co.uk> To: freebsd-questions@freebsd.org Cc: Andrei Brezan <andrei693@gmail.com>, allen harris <allenat1@live.co.uk> Subject: Re: log in and password. Message-ID: <5352912.xfjBXPP2uH@curlew.lan> In-Reply-To: <542E8F3C.5030408@gmail.com> References: <DUB407-EAS1160C159C7FE4621145B0EBB0A60@phx.gbl> <20141003120840.348155b6.freebsd@edvax.de> <542E8F3C.5030408@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 03 Oct 2014 13:57:48 Andrei Brezan wrote: > On 10/03/14 12:08, Polytropon wrote: > > When you enter single user mode, no password should be required. > > At the boot prompt, enter "boot -s", and then confirm /bin/sh > > as the default shell. Enter the command "mount -uw /" to access > > the root partition (where the password is stored). Then enter > > "passwd" (or "passwd root") to change root's password. You will > > not be asked for the previous password. > > If ZFS is used I would do a "zfs list" to see which fs has the > rootfs and "zfs set readonly=off name/of/rootfs" > > Also it might help to "zfs mount -a" to mount all other filesystems > as /usr. > > I never tried mount -uw in single user mode on zfs though. After converting my system from ufs to zfs I just kept on using "mount -u /" out of habit and it's always worked OK. -- Mike Clarke
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5352912.xfjBXPP2uH>