Saturday, October 25, 2014

Resetting the root password on OpenBSD

Just had to do this. My first time booting in to single user mode. I feel like a big boy. Thanks to Geeklog for holding my hand.

Reboot the server

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.

Next mount / and /usr file system in read-write mode:
# mount -uw /
# mount /usr

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

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

No comments:

Post a Comment