Adrian Pavone <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Miguel wrote: > > Andy Greenwood wrote: > > > >> I don't know what you mean by kernel errors on boot, but you can > >> recover your root password by booting into single user mode and then > >> running passwd. > > > > Hi, i have a similar problem, i forgot my root password and the server > > its in a remote colocation site, is there a way to recover the encrypted > > password and crackit some way, i have my normal account (which is in > > wheel group), i even know that the root's pass begings with > > MAG_"something", but i really cant remember the complete root's pass, > > rebooting in single user mode is my best bet? > > It is easiest if the system's single user mode hasn't been locked down
Yes, but that is generally not a good idea at a colo, unless you have some kind of physical security on the box. > If single user mode HAS been locked down (ie. needs the root password), > then you will need a boot disc so you can chroot to your FreeBSD system > from another, or so you can directly edit the /etc/passwd or /etc/shadow > file. FYI: secure single password mode is default: meaning that the system assumes that anyone that can physically access the system should be able to use single user mode without a password. You have to make changes to /etc/ttys to get a paranoid console that asks for a password. > The password hash *MIGHT* also be in one of those two files, depending > on your configuration. Linux, Linux, Linux. FreeBSD has no /etc/shadow. There's /etc/passwd and /etc/master.passwd. The password hash is readible by root only, so that doesn't help if you only have a mortal account. Unless you've specifically set up something else to work around this problem, you _must_ get physical access to fix it. In the future, try installing sudo or using PKI to protect yourself from lost passwords. -- Bill Moran Be calm. Morpheus _______________________________________________ email@example.com mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"