Author Topic: Help Need To Reset Root Password  (Read 3178 times)

stradt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Help Need To Reset Root Password
« on: December 07, 2005, 04:06:06 am »
Hi everyone...
I've got a SL-6000 with rc12 on it.  I've been doing some local development work.  I got distracted and pulled off of this project for about a month.  Now I'm back on it and I cant remember the root password.
I need some way of resetting the root password. I've tried booting off of the install media and it mounts the flash root and then mounts the install media root right on top of it.  This leaves me with no way of getting to /etc/passwd
I can't find any documents about the boot loader and how to get the device to boot into single user mode...
I need ANY help that I can get.  I'm risking losing a couple months worth of work.....

Thanks in advance,

Chris Stradtman

miskinis

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
    • http://
Help Need To Reset Root Password
« Reply #1 on: December 12, 2005, 02:12:17 pm »
Quote
I've tried booting off of the install media and it mounts the flash root and then mounts the install media root right on top of it.  This leaves me with no way of getting to /etc/passwd
I can't find any documents about the boot loader and how to get the device to boot into single user mode...

Well, this is just an idea, but keep in mind I have never learned about the details of the
boot loader, or update process.

Would it be possible to craft a customized "updater.sh" and maybe "tools.tar", and
use the builtin updater to execute the "updater.sh".  Perhaps the script could replace
the /etc/passwd with another one, or something like that.

Anyway, I'm also wondering how you made out with this...  John
_John Miskinis_

stradt

  • Newbie
  • *
  • Posts: 5
    • View Profile
Help Need To Reset Root Password
« Reply #2 on: December 12, 2005, 10:02:40 pm »
quote=miskinis,Dec 12 2005, 03:12 PM]
Quote from: stradt,Dec 7 2005, 09:06 AM
I've tried booting off of the install media and it mounts the flash root and then mounts the install media root right on top of it.  This leaves me with no way of getting to /etc/passwd
I can't find any documents about the boot loader and how to get the device to boot into single user mode...

Well, this is just an idea, but keep in mind I have never learned about the details of the
boot loader, or update process.

Would it be possible to craft a customized "updater.sh" and maybe "tools.tar", and
use the builtin updater to execute the "updater.sh".  Perhaps the script could replace
the /etc/passwd with another one, or something like that.

Anyway, I'm also wondering how you made out with this...  John
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106873\"][{POST_SNAPBACK}][/a][/div]
[/quote]

I was thinking that myself.... but I remebered the password before I had to resort to that.
It was one of my standard password but the normal substitiutions were missing because the zaurus keyboard wasn't mapped correctly right after the initial install of pdaXrom.
:-0

realm

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Help Need To Reset Root Password
« Reply #3 on: December 14, 2005, 06:45:28 pm »
here is the easy way to reset the root password on any zaurus.

1. pull the battery.
2. while holding B+D down put the battery in.
3. your Z will boot to a shell
4. chroot to your root path, in flash or on a drive. ex chroot /dev/mtdblock3
5. set the password. ex passwd

this will set the root password, you should be good to go then.
SL-C860   r197
SL-C3000 Angstrom with e17 /1 Gig SD/Senao Wifi/CF Bluetooth/CF GPS