[Asterisk-Users] Asterisk Maintenance
Tzafrir Cohen
tzafrir at technion.ac.il
Fri Dec 10 07:54:15 MST 2004
OT comment...
On Wed, Dec 08, 2004 at 02:41:07PM -0700, Michael Welter wrote:
> This was a situation where I had to recover the root password, so I
> wasn't able to ssh into the box. I had to power-down the box, recover
> the password, and then reboot.
Why reboot?
when you boot, add 'init=/bin/bash' to the boot parameters.
Then run:
mount /proc
mount -o remount,rw /
do whatever editing needs to be done before the system starts (in your
case: 'passwd root'), and in the end:
mount -o remount,ro /
umount /proc
cd /
exec /sbin/init
And a normal init process should start.
--
Tzafrir Cohen +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:tzafrir at technion.ac.il +---------------------------+
More information about the asterisk-users
mailing list