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:[EMAIL PROTECTED]       +---------------------------+
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to