UP | HOME

Reset Root Password of OpenBSD

At boot> prompt type boot -s to boot into single user mode: boot> boot -s

Next you will see a message as follows: Enter pathname of shell or RETURN for sh: Just hit [Enter] key to load sh shell.

Mount / and /usr file system in read-write mode:

Finally set or change the password for root user, enter:

Press CTRL+D to boot into multiuser mode or just reboot server: