Forget / forgot / cannot remember root password

On a FreeBSD server

1. reboot server
2. choose to boot into single user mode
3. mount -o rw <root partition> e.g. mount -o rw /
4. passwd <root account> e.g. passwd root
5. mount -o ro <root partition> e.g. mount -o ro /
6. reboot server again

Voila !!!

Related posts:

  1. Reset MySQL Root Password Very often, once we didn’t log on to MySQL database...
  2. Change or Set User Password in FreeBSD If you notice, during FreeBSD installation, it doesn’t have a...
  3. mount hfsplus (mac os file system) under Debian linux Have an external hard disk with hfsplus or hfs+ partition...
  4. Create Root Privilege User on MySQL By default, MySQL root privileges user is “root”, I always...
  5. How to Create User with useradd in FreeBSD You can invoke “adduser” command in FreeBSD in order to...
  6. How to Find Your Closest Anycast DNS Server with Dig Most ISP deploys Anycast DNS server on their network and...
  7. How to Install FreeBSD 5.4 on Your Machine FreeBSD is an advanced operating system for x86 compatible (including...
  8. FreeBSD 6.1 Performance Tuning Just a note for myself to tune FreeBSD OS for...
  9. Servers Uptime. More Than 356 days, 1 Year Old Phew, time flies… I’ve been working with AIMS for more...
  10. MySQL Quick Installation on FreeBSD Quick installation of MySQL Database on FreeBSD Server. Make sure...

One Response to “Forget / forgot / cannot remember root password”

  1. spoonfork Says:

    basket. next time post early la. normally if i forgot password i just reformat and reinstall…. only now u post this tip. kanineh

Leave a Reply