maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   What is root password on Nokia n800 (os2008)? (https://talk.maemo.org/showthread.php?t=30152)

flp 2009-07-08 06:50

What is root password on Nokia n800 (os2008)?
 
I know this is a terribly newbie question but I've searched and tried everything but putting the device in R&D mode.

When I try a command with sudo and it asks for the password, nothing I put in works. E.g., rootme, password, fakeroot, just hitting enter, etc...

Same with ssh root@localhost or when trying to ssh root@<ipaddress_of_device> from my computer.

I have rootsh and openssh installed. Typing in "sudo gainroot" on my device gives me access to the root shell but I still can't do ssh root@localhost with any of the passwords I've tried before. I've also tried "passwd" and "passwd root", in the root shell, but whatever new password I give it there doesn't stick.

Can I fix this without using R&D mode? Or if I can't, what do I do once I put the device in R&D mode?

Cheers, flp

danielwilms 2009-07-08 07:15

Re: What is root password on Nokia n800 (os2008)?
 
hmmm...I don't get really the point. so you have a root shell, but what do you want to reach???

when you install openssh it asks you as far as I remember for a new root password...did you try that, when you tried your ssh root@localhost?? the initial passwd is "rootme". what you then did I don't know :)

Anyway, everything about root access you find here

Cheers Daniel

lma 2009-07-08 07:58

Re: What is root password on Nokia n800 (os2008)?
 
There is no default root password (the root account is disabled out of the box). If you set one by running "passwd root" (as root) then that should work for ssh access. Just to make sure that the passwd change takes effect, run "grep root /etc/passwd" before and after the passwd command (the output should be different).

danielwilms 2009-07-08 08:04

Re: What is root password on Nokia n800 (os2008)?
 
Quote:

Originally Posted by lma (Post 302938)
There is no default root password (the root account is disabled out of the box).

that's right, but in this case openssh is installed and there is "rootme" the default password for root.

lma 2009-07-08 08:26

Re: What is root password on Nokia n800 (os2008)?
 
Quote:

Originally Posted by danielwilms (Post 302939)
that's right, but in this case openssh is installed

True, in which case there now is a root password set, but apparently not what flp thinks it should be. Since gainroot works the best chance of fixing whatever it is that went wrong is with passwd.

Quote:

and there is "rootme" the default password for root.
That used to be the default password a long ago, but not in OS2008.

qwerty12 2009-07-08 08:31

Re: What is root password on Nokia n800 (os2008)?
 
Quote:

Originally Posted by lma (Post 302943)
That used to be the default password a long ago, but not in OS2008.

No, it still is "rootme" (I ran john once...) but the /etc/init.d/ttyusb0 script disables the account if RD Mode is disabled.

@flp

You say you've got rootsh installed, so run "rootsh passwd root" and set a new password. And this should work considering rootsh is setuid...

LABAUDIO 2009-07-08 08:42

Re: What is root password on Nokia n800 (os2008)?
 
sudser 0.2.0-2 installed work weel too

after install

sudo su -
passwd
type new password
confirm you new password

alleluia

flp 2009-07-08 16:02

Re: What is root password on Nokia n800 (os2008)?
 
Quote:

Originally Posted by lma (Post 302938)
There is no default root password (the root account is disabled out of the box). If you set one by running "passwd root" (as root) then that should work for ssh access. Just to make sure that the passwd change takes effect, run "grep root /etc/passwd" before and after the passwd command (the output should be different).

When I run "grep root /etc/passwd" before and after the passwd command (run in root shell) i get output that looks like "root:IOWE9827mp28fJI:0:0:root:/root:bash" and the encrypted stuff dose change after I change the password using passwd, but I still get permission denied when I run "ssh root@localhost" with the new password.

flp 2009-07-08 16:02

Re: What is root password on Nokia n800 (os2008)?
 
Quote:

Originally Posted by qwerty12 (Post 302945)
No, it still is "rootme" (I ran john once...) but the /etc/init.d/ttyusb0 script disables the account if RD Mode is disabled.

@flp

You say you've got rootsh installed, so run "rootsh passwd root" and set a new password. And this should work considering rootsh is setuid...

This doesn't work, I still get permission denied.

flp 2009-07-08 16:06

Re: What is root password on Nokia n800 (os2008)?
 
Quote:

Originally Posted by LABAUDIO (Post 302948)
sudser 0.2.0-2 installed work weel too

after install

sudo su -
passwd
type new password
confirm you new password

alleluia

I successfully intalled sudser 0.2.0-2, but when I entered the first command "sudo su -" I get a message: "su: cannot run bash: No such file or directory"

The shell I'm running is ash, not bash. Is this the reason none of these commands are working??? I thought ash linked to bash.


All times are GMT. The time now is 20:22.

vBulletin® Version 3.8.8