Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2007 13:26:30 +0400
From:      Yuri Pankov <yuri@darklight.org.ru>
To:        Zbigniew Szalbot <zbigniew@szalbot.homedns.org>
Cc:        Freebsd questions <freebsd-questions@freebsd.org>
Subject:   Re: adding password for root
Message-ID:  <20070707092630.GA1027@darklight.org.ru>
In-Reply-To: <dd3e57754ed6fbce947db664e138e55c@szalbot.homedns.org>
References:  <661da47eebc86c4118f855e4bf13eb10@szalbot.homedns.org> <dd3e57754ed6fbce947db664e138e55c@szalbot.homedns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jul 07, 2007 at 11:15:41AM +0200, Zbigniew Szalbot wrote:
> Hello,
>=20
> On Sat, 7 Jul 2007 10:48:52 +0200, Zbigniew Szalbot
> <zbigniew@szalbot.homedns.org> wrote:
> > Hello,
> >=20
> > Not sure how it came about but I just realized that my for new FBSD
> > installation root user is without a password. When I log in remotely and
> > want to use chpass to add a password for user root I am presented with =
vi
> > editor in which I guess I could theoretically insert it. But this proce=
ss
> > was always interactive. How should I add a password for user root (remo=
te
> > login as root is disabled). Do I need to access that box physically and
> > type it on the console or can I set it remotely?
>=20
> Stupid me. Instead of waiting for your advice I went ahead and entered a
> password in the vi editor, then saved. Unfortunately, this password is not
> accepted when I su. Is there any hope for me other than reinstallting the
> whole system?
>=20
> Thank you!
>=20
> --=20
> Zbigniew Szalbot
>=20

You'll need physical access. Boot into single user mode, and you shall
be able to change password with `passwd`. Don't forget to `mount -a`.


HTH,
Yuri

--h31gzZEtNLTqOjlF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBGj1xGeoAklVFrLdgRAv0aAJ9G5nj7Q31qfEGZPEXGf+SSuNT8WwCePFAV
CN2RDxzCwUd6rCvbgNidSwg=
=p2DH
-----END PGP SIGNATURE-----

--h31gzZEtNLTqOjlF--



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