adding password for root
yuri at darklight.org.ru
Sat Jul 7 09:26:55 UTC 2007
On Sat, Jul 07, 2007 at 11:15:41AM +0200, Zbigniew Szalbot wrote:
> On Sat, 7 Jul 2007 10:48:52 +0200, Zbigniew Szalbot
> <zbigniew at szalbot.homedns.org> wrote:
> > Hello,
> > 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 process
> > was always interactive. How should I add a password for user root (remote
> > 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?
> 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?
> Thank you!
> Zbigniew Szalbot
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`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070707/a5e12fd8/attachment.pgp
More information about the freebsd-questions