Blame
Date:
Mon Jan 23 05:00:25 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=w3m/0.5.3+git20210102
03
2023-01-22
jrmu
author=jrmu
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=
06
2023-01-22
jrmu
ctime=1633578967
07
2023-01-22
jrmu
host=125.231.16.237
08
2023-01-22
jrmu
name=OpenBSD.ResetPassword
09
2023-01-22
jrmu
rev=1
10
2023-01-22
jrmu
targets=
11
2023-01-22
jrmu
text=(:title Reset your passwords on OpenBSD:)%0a%0aIf you forgot your root password for OpenBSD, you can easily reset it if you%0ahave access to the serial console.%0a%0aFirst, you'll want to get access to the serial console. If your virtual%0amachine is using OpenBSD's VMM as the hypervisor, this can be accessed%0ausing ssh:%0a%0a[@%0a$ ssh username@example.com%0a@]%0a%0aReplace username with your real username, and example.com with your%0ahypervisor's hostname (host.ircnow.org, host.lecturify.net,%0ahost.bsdforall.org, etc).%0a%0aOnce you get ssh access, you'll need to shut down your existing virtual%0amachine:%0a%0a[@%0a$ vmctl stop vm-name%0a@]%0a%0aReplace vm-name with your virtual machine name (it's usually the same as%0ayour username).%0a%0a[@%0a$ vmctl start -c vmname%0a@]%0a%0aIf you see the following error message:%0a%0a[@%0avmctl: start vm command failed: Operation already in progress%0a@]%0a%0aThis means your virtual machine has not finished shutting down. Wait a%0aminute or two, then retype the command @@vmctl start -c vmname@@ again.%0a%0aYou should see the following:%0a%0a[@%0aCD-ROM: E0%0aLoading /6.9/AMD64/CDBOOT%0aprobing: pc0 com0 mem[638K 1022M a20=on] %0adisk: hd0+* cd0%0a>> OpenBSD/amd64 CDBOOT 3.53%0aboot> %0a@]%0a%0a'''Immediately''', without any delay, type:%0a%0a[@%0aboot> boot -s%0a@]%0a%0aAt any time, if you need to escape the serial console (perhaps because%0ayou were unable to stop OpenBSD from automatically booting),%0atype @@~~.@@%0a%0aSelect sh as your shell, then:%0a%0a[@%0a# fsck -p / && mount -urw /%0a# fsck -p / && mount -rw /usr%0a# fsck -p / && mount -rw /var%0a# fsck -p / && mount -rw /tmp%0a# passwd root%0a# passwd username%0a@]%0a%0aReplace @@username@@ with your real username.%0a%0aThen, reboot:%0a%0a[@%0a# reboot%0a@]%0a%0a!! Recommended Reading%0a%0ahttps://www.openbsd.org/faq/faq8.html#LostPW%0a
12
2023-01-22
jrmu
time=1633578967
13
2023-01-22
jrmu
title=Reset your passwords on OpenBSD
14
2023-01-22
jrmu
author:1633578967=jrmu
15
2023-01-22
jrmu
diff:1633578967:1633578967:=1,83d0%0a%3c (:title Reset your passwords on OpenBSD:)%0a%3c %0a%3c If you forgot your root password for OpenBSD, you can easily reset it if you%0a%3c have access to the serial console.%0a%3c %0a%3c First, you'll want to get access to the serial console. If your virtual%0a%3c machine is using OpenBSD's VMM as the hypervisor, this can be accessed%0a%3c using ssh:%0a%3c %0a%3c [@%0a%3c $ ssh username@example.com%0a%3c @]%0a%3c %0a%3c Replace username with your real username, and example.com with your%0a%3c hypervisor's hostname (host.ircnow.org, host.lecturify.net,%0a%3c host.bsdforall.org, etc).%0a%3c %0a%3c Once you get ssh access, you'll need to shut down your existing virtual%0a%3c machine:%0a%3c %0a%3c [@%0a%3c $ vmctl stop vm-name%0a%3c @]%0a%3c %0a%3c Replace vm-name with your virtual machine name (it's usually the same as%0a%3c your username).%0a%3c %0a%3c [@%0a%3c $ vmctl start -c vmname%0a%3c @]%0a%3c %0a%3c If you see the following error message:%0a%3c %0a%3c [@%0a%3c vmctl: start vm command failed: Operation already in progress%0a%3c @]%0a%3c %0a%3c This means your virtual machine has not finished shutting down. Wait a%0a%3c minute or two, then retype the command @@vmctl start -c vmname@@ again.%0a%3c %0a%3c You should see the following:%0a%3c %0a%3c [@%0a%3c CD-ROM: E0%0a%3c Loading /6.9/AMD64/CDBOOT%0a%3c probing: pc0 com0 mem[638K 1022M a20=on] %0a%3c disk: hd0+* cd0%0a%3c >> OpenBSD/amd64 CDBOOT 3.53%0a%3c boot> %0a%3c @]%0a%3c %0a%3c '''Immediately''', without any delay, type:%0a%3c %0a%3c [@%0a%3c boot> boot -s%0a%3c @]%0a%3c %0a%3c At any time, if you need to escape the serial console (perhaps because%0a%3c you were unable to stop OpenBSD from automatically booting),%0a%3c type @@~~.@@%0a%3c %0a%3c Select sh as your shell, then:%0a%3c %0a%3c [@%0a%3c # fsck -p / && mount -urw /%0a%3c # fsck -p / && mount -rw /usr%0a%3c # fsck -p / && mount -rw /var%0a%3c # fsck -p / && mount -rw /tmp%0a%3c # passwd root%0a%3c # passwd username%0a%3c @]%0a%3c %0a%3c Replace @@username@@ with your real username.%0a%3c %0a%3c Then, reboot:%0a%3c %0a%3c [@%0a%3c # reboot%0a%3c @]%0a%3c %0a%3c !! Recommended Reading%0a%3c %0a%3c https://www.openbsd.org/faq/faq8.html#LostPW%0a
16
2023-01-22
jrmu
host:1633578967=125.231.16.237
IRCNow