Help - Search - Members - Calendar
Full Version: Recovering 'root' Pw...
OESF Portables Forum > General Forums > General Discussion
mtnkill
I apparently have forgotten my root pw. I can't 'su' as it doesn't accept any of the standard passwords I use, nor the one I'm pretty certain I set it to.

I presume there isn't any backdoor method of recovering/resetting root (which of course would make it very useless from a security standpoint)...

shane
craigtyson
have you tries using the security icon? on some roms it also (re)sets the root hm could this be a security prob a large no of zauri will have a pure nemeric root pw......
lardman
Are you running a Sharp-based (or Opie or pdaXrom) flash image - i.e. do you run as root by default - if so it will most probably be easier than if you are a mere mortal user (which would be the case with GPE for example).


Si
Stubear
Does sudo work? If so then all you have to do is use sudo to edit /etc/shadow.
make sure that the root entry looks something like this
CODE
root::10933:0:99999:7:::


The really important part is the bit between the first and second :, if you see random letter etc then your Z has a password for root, if it is just :: then you have no passwd, remove anything between the first and second : and your password goes away.

If you don't have sudo or it isn't working then you can try booting into the maintanece mini-distro using D+B while booting (same as you would for D+M to get to maintenance menu but holding the D and B keys)

You will need to mount the home partition (/dev/mtdblock3 on the C760 and C1K) and edit the shadow file as above.

Hope this helps.

Stu.

P.S. if you have physical access to a device it is always possible to get root privleges on that device - at least I've never found a device where this wasn't true.
mtnkill
QUOTE(craigtyson @ Jun 15 2005, 02:48 PM)
have you tries using the security icon?  on some roms it also (re)sets the root hm could this be a security prob a large no of zauri will have a pure nemeric root pw......
*


Holy crap! This was it. I cleared my security code and got root back with no pwd. I set the security code again, and my root pw changed to the code I set. That is not very intuitive at all. I am running the stock Sharp ROM on my C1000, so I'm normally just the 'zaurus' user (ie. mortal).

I then tested setting an alphanumeric root pw (using 'passwd' when su'd), then changed my passcode in the 'Security' settings, and my root pw stayed the alphanumeric one I had set. So, apparently the Security passcode only gets applied to root in cases where the root pw is blank.

Very, very odd.

Thanks!!

(stubear, thanks for your info. also...will have to test on my RHEL PC...)

shane
lardman
QUOTE
Very, very odd.


lol, I remember similar complaints a long long time ago on the devnet - iirc this has always affected Sharp ROMs (in the old days you didn't even get a terminal by default so Sharp probably thought it wouldn't be a major issue - then again, how can I possibly pretend to understand what Sharp think?! wink.gif ).

Glad you got it fixed,


Si
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.