Reply
Thread Tools
Posts: 16 | Thanked: 0 times | Joined on Jul 2009
#1
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
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
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
 

The Following 2 Users Say Thank You to danielwilms For This Useful Post:
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#3
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).
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#4
Originally Posted by lma View Post
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.
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#5
Originally Posted by danielwilms View Post
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.

and there is "rootme" the default password for root.
That used to be the default password a long ago, but not in OS2008.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
Originally Posted by lma View Post
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...

Last edited by qwerty12; 2009-07-08 at 08:34.
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
LABAUDIO's Avatar
Posts: 315 | Thanked: 71 times | Joined on Oct 2008 @ €@$T Montreal Quebec Canada
#7
sudser 0.2.0-2 installed work weel too

after install

sudo su -
passwd
type new password
confirm you new password

alleluia
__________________
N900 Owner N95 + N810
Fremantle Tester
Diablo Dacker
French Noob

BorgTheme ¤ BorgSounds ¤ BorgStartUp ¤ BorgClock
 

The Following 3 Users Say Thank You to LABAUDIO For This Useful Post:
Posts: 16 | Thanked: 0 times | Joined on Jul 2009
#8
Originally Posted by lma View Post
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.
 
Posts: 16 | Thanked: 0 times | Joined on Jul 2009
#9
Originally Posted by qwerty12 View Post
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.
 
Posts: 16 | Thanked: 0 times | Joined on Jul 2009
#10
Originally Posted by LABAUDIO View Post
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.
 
Reply


 
Forum Jump


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