27 April 2010

Single User Mode (reset root password)

  • step 1 - Start single user mode
  • step 2 - Check file systems with fsck
  • step 3 - Mount filesystems
  • step 4 - Reset root password
 
 
Using drive 0, partition 3.
Loading...
probing : pc0 com0 apm mem[634K 319M a20=on]
disk: fd0 hd0+
>> OpenBSD/i386 BOOT 3.01
boot> boot -s
 


Enter pathname of shell or RETURN for sh: 
# fsck -p

# mount -a
# export TERM=vt220


# passwd
Changing local password for root.
New password: ILikeMonkeys
Retype new password: ILikeMonkeys 
 
# shutdown -r now


[SRC]



No comments: