maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   root password (https://talk.maemo.org/showthread.php?t=67359)

shailesh 2010-12-23 15:27

root password
 
Hi,

Can anyone help me with root password of n900?

mr id 2010-12-23 16:12

Re: root password
 
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 2010-12-23 16:17

Re: root password
 
i think he needs rootsh installed and type sudo gainroot

mr id 2010-12-23 16:22

Re: root password
 
Quote:

Originally Posted by Changegames (Post 902910)
i think he needs rootsh installed and type sudo gainroot

I agree it's quite likely, but I'm simply not a betting man :)

shailesh 2010-12-23 16:24

Re: root password
 
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.

shailesh 2010-12-23 16:27

Re: root password
 
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.

mr id 2010-12-23 16:34

Re: root password
 
Quote:

Originally Posted by shailesh (Post 902925)
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

DrWilken 2010-12-23 16:36

Re: root password
 
Quote:

Originally Posted by shailesh (Post 902922)
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 - :)

shailesh 2010-12-23 16:42

Re: root password
 
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.

mr id 2010-12-23 16:48

Re: root password
 
Quote:

Originally Posted by shailesh (Post 902931)
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)?


All times are GMT. The time now is 18:06.

vBulletin® Version 3.8.8