Active Topics

 


Reply
Thread Tools
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#1
Hi,

Can anyone help me with root password of n900?
__________________
shail
 
Posts: 237 | Thanked: 193 times | Joined on Feb 2010 @ Brighton, UK
#2
Hi,

What do you think you need it for?

What are you trying to do? Something from the terminal, or over ssh etc.

Have you ever set one? Are you trying to retrieve a forgotten one?

Don't want to give you the right information for the wrong job as it won;t help you
 
Changegames's Avatar
Posts: 277 | Thanked: 69 times | Joined on Jul 2010
#3
i think he needs rootsh installed and type sudo gainroot
 
Posts: 237 | Thanked: 193 times | Joined on Feb 2010 @ Brighton, UK
#4
Originally Posted by Changegames View Post
i think he needs rootsh installed and type sudo gainroot
I agree it's quite likely, but I'm simply not a betting man
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#5
hi, Thanks all for replying.
I do know abt rootsh. i have installed that.
i do get root access when i execute sudo gainroot.
but.......
i want to know if i want to set a password for root.

Below are the steps i follow :-
sudo gainoot
passwd
--- i enter password (suppose i enter the password as abcde)
- i reenter the password

till here everything works fine.

now if i close the terminal and open it and try to execute this comment
sudo su - (trying to login as root)
it prompts me to enter the password (if i enter the same password abcde)
it throws an error :-
sorry, try again.
__________________
shail
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#6
as far as my understanding goes once u set the root password then i should be able to login using that.

However i must admit i can still gain root access by rootsh (sudo rootgain)

But i should still be able to login after entering the root password which i set earlier.

Please help me.
__________________
shail

Last edited by shailesh; 2010-12-23 at 16:35.
 
Posts: 237 | Thanked: 193 times | Joined on Feb 2010 @ Brighton, UK
#7
Originally Posted by shailesh View Post
as far as my understanding goes once u set the root password then i should be able to login using that.

However i must admit i can still gain root access by rootsh (sudo rootgain)

But i should still be able to login y entering the root password which i set earlier.

Please help me.
Someone else may have some more constructive advice but I think you may have answered your own question. 'sudo gainroot 'gives you a root shell - this is what you are trying to do. Unless you are trying to do something else?

However, have you tried sshing as root to the device (assuming you have an ssh server running on the phone? does the password work then?

e.g. from a linux box on the same network:
ssh root@YOUR.N900.IP.ADDRESS
 
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#8
Originally Posted by shailesh View Post
hi, Thanks all for replying.
I do know abt rootsh. i have installed that.
i do get root access when i execute sudo gainroot.
but.......
i want to know if i want to set a password for root.

Below are the steps i follow :-
sudo gainoot
passwd
--- i enter password (suppose i enter the password as abcde)
- i reenter the password

till here everything works fine.

now if i close the terminal and open it and try to execute this comment
sudo su - (trying to login as root)
it prompts me to enter the password (if i enter the same password abcde)
it throws an error :-
sorry, try again.
Don't run:
Code:
sudo su -
But rather:
Code:
su -
sudo runs commands as "superuser" or root (normally)... And You're not allowed to run su as via sudo as 'user'...

And since You want to change from 'user' to 'root' without using sudo just run su -
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 
Posts: 21 | Thanked: 0 times | Joined on Nov 2010 @ india
#9
i have tried it. but some reason it doesnt work.
Let me explain u the setup first.

I have a win xp machine connected through a high speed internet.
on other hand i have gprs enable on my n900.

i am unable to ssh from my xp machine to n900 using putty.

however i tried to ping the public ip address which my n900 has accquired and not sure why i am unable to ping n900 ip from win xp machine also .

can u let me know if the setup which i explained will / should work.

please do let me know incase i have missed something. sorry if i am troubling u guys.
__________________
shail
 
Posts: 237 | Thanked: 193 times | Joined on Feb 2010 @ Brighton, UK
#10
Originally Posted by shailesh View Post
i have tried it. but some reason it doesnt work.
Let me explain u the setup first.

I have a win xp machine connected through a high speed internet.
on other hand i have gprs enable on my n900.

i am unable to ssh from my xp machine to n900 using putty.

however i tried to ping the public ip address which my n900 has accquired and not sure why i am unable to ping n900 ip from win xp machine also .

can u let me know if the setup which i explained will / should work.

please do let me know incase i have missed something. sorry if i am troubling u guys.
I think it's unlikely you'll be able to ssh to a GPRS ip address that your phone has. I believe people have set up some arcane forwarding (search the site for it) to allow this to happen over multiple steps, but a straight ssh to the ip assigned by your phone's data provider seems very unlikely.

Can you ssh to the phone from your laptop when they are on the same network (either an adhoc wifi supplied by the phone or a wi-fi network they both connect to)?
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:54.