Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Oct 2014 13:57:48 +0200
From:      Andrei Brezan <andrei693@gmail.com>
To:        allen harris <allenat1@live.co.uk>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: log in and password.
Message-ID:  <542E8F3C.5030408@gmail.com>
In-Reply-To: <20141003120840.348155b6.freebsd@edvax.de>
References:  <DUB407-EAS1160C159C7FE4621145B0EBB0A60@phx.gbl> <20141003120840.348155b6.freebsd@edvax.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

On 10/03/14 12:08, Polytropon wrote:
> (Re-including list, hoe that's okay.)
>
> On Fri, 3 Oct 2014 00:29:06 +0000, allen harris wrote:
>> ive understood your reply and am now on top of what needs
>> doing but it still keeps asking me for a login which wasn't
>> set by me and am unaware of how to get around this, thankyou
>> for your patience I await your response.
> Please first make clear if you're missing a _user_ password
> or the _root_ password. There hasn't been a definite mentioning
> in your initial post. Having to deal with a system where someone
> else has set passwords that you don't know is always a bit
> problematic, but not impossible to solve. It requires that you
> try to tell as precisely as possible what's actually going on.
>
> 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.

> Allow me to point you to the FAQ entry again, and check /etc/ttys
> if your console has been marked "insecure" which _might_ be a
> reason for still being prompted for the root password in single
> user mode:
>
> https://www.freebsd.org/doc/faq/admin.html#idp59717152
>
> Do you have a FreeBSD live system (installation CD or DVD, or
> USB stick) available? You can use that to access the system's
> partitions and make changes independently from passwords restricting
> access therein (e. g., change "insecure" to "secure" console in
> /etc/ttys, if it should be needed).
>
> Is it possible for you to provide a screen transcript or screen
> capture of what you see? Please try to describe what steps you
> have taken and what results they ended in. This will make
> troubleshooting easier. At this time, it's just a WAG. ;-)
>
>
>
>

-- 
Andrei




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?542E8F3C.5030408>