root password recovery - Suse 10.2.1
Hope you can help
Short version: Ex employee logged into to box and changed the root password, trued to start in single user mode, but not coming right Long version: * Loaded up grub * Typed the following in Boot Options: init=/bin/sh * Takes me to a prompt where I then enter the command "passwd" * Returns with a "command could not be found" output Tried changing the directories to /usr/bin and /sbin but didn't work either, any ideas? |
Quote:
And alternative is to find said ex-employee, and threaten them with bodily harm, until they tell you the password. :) |
First things first, I'd specify
Code:
init=/bin/bash That gives you a shell, and virtually nothing else, but the filesystem is still mounted read-only. So, next do this: Code:
mount -o remount,rw / Now Code:
passwd Code:
mount -o remount,rw / |
Another option is to boot with a live cd, mount the partition your system is on in a folder somewhere and then chroot into it.
Quote:
|
All times are GMT -5. The time now is 12:25 AM. |