From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 18:22:19 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9EDAAA2 for ; Mon, 6 Oct 2014 18:22:19 +0000 (UTC) Received: from avasout06.plus.net (avasout06.plus.net [212.159.14.18]) by mx1.freebsd.org (Postfix) with ESMTP id 2DB693B8 for ; Mon, 6 Oct 2014 18:22:18 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout06 with smtp id zuNA1o004516WCc01uNB2J; Mon, 06 Oct 2014 19:22:11 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=HNxNF+dv c=1 sm=1 tr=0 a=lfSX4pPLp9EkufIcToJk/A==:117 a=lfSX4pPLp9EkufIcToJk/A==:17 a=D7rCoLxHAAAA:8 a=0Bzu9jTXAAAA:8 a=PBtdaOD29JoA:10 a=ZTb9aqGL9YkA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=8kADFqRAsQ7YgqLa2P0A:9 a=wPNLvfGTeEIA:10 a=SSmOFEACAAAA:8 a=ah4zAuBDUaYyBcBxsWAA:9 a=QpiVlW0pTUBfaCBl:21 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.84) (envelope-from ) id 1XbCvB-00014C-JD; Mon, 06 Oct 2014 19:22:09 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Mon, 06 Oct 2014 19:22:08 +0100 Message-ID: <5352912.xfjBXPP2uH@curlew.lan> User-Agent: KMail/4.12.5 (FreeBSD/9.3-RELEASE-p2; KDE/4.12.5; amd64; ; ) In-Reply-To: <542E8F3C.5030408@gmail.com> References: <20141003120840.348155b6.freebsd@edvax.de> <542E8F3C.5030408@gmail.com> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on curlew.lan X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.0 Subject: Re: log in and password. X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on curlew.milibyte.co.uk) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Andrei Brezan , allen harris X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2014 18:22:19 -0000 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