maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Root vs sudo gainroot (https://talk.maemo.org/showthread.php?t=68151)

mdziaf 2011-01-10 16:01

Root vs sudo gainroot
 
Hi there,

I am trying to root my friend's N900 to install preenv. The following describes the method I used and the problem I faced trying while trying to root the device.

1. I installed the rootsh application on the N900
2. Restarted the phone (don't know if it was necessary but did it anyways)
3. Opened XTerminal, and typed in
Code:

sudo gainroot
A password prompt was given. Tried typing "user" and 12345 and a few others but still wasn't right.

However, if I close and reopen Xterminal, and type in
Code:

root
no password prompt was given. but doing an apt-get install would give "unable to lock the admin directory"

I'm quite new to the linux world, but theres a few questions that is on my mind.
  • Shouldn't the rootsh remove the password prompt when sudo gainroot is typed?
  • Shouldn't the two codes (sudo gainroot) and (root) be the same?
  • Why does one asks for a password and the other doesn't?
  • Is the "Unable to lock the admin directory related to the fact that we weren't (in my definition) "fully rooted?



I also tried uninstalling rootsh through the app manager but it returned stating that rootsh was unable to uninstall. Any help and explanation is appreciated. Thanx :)


__
First thread, and 2nd post in forum :o, I hope I was clear about my query. I've also searched the forums, tried doing a
Code:

sudo passwrd root
, tried uninstalling rootsh, tried quite a few variety of password recommendations but to no avail.

ziggadebo 2011-01-10 16:12

Re: Root vs sudo gainroot
 
Quote:

Originally Posted by mdziaf (Post 916965)
Hi there,

I am trying to root my friend's N900

fnar fnar....sry very childish but always makes me laugh out loud.

michaaa62 2011-01-10 16:16

Re: Root vs sudo gainroot
 
Warning, wild guess ahead: Did you install some other root-enabling package like sudser, open-ssh or other before, so that sudo gets modified somehow to ask for a password?

funkmunk 2011-01-10 16:18

Re: Root vs sudo gainroot
 
@michaaa62

I probably feel he installed open ssh because that is the only one that asks for a password i think.

mdziaf 2011-01-10 16:20

Re: Root vs sudo gainroot
 
Quote:

Originally Posted by funkmunk (Post 916980)
@michaaa62

I probably feel he installed open ssh because that is the only one that asks for a password i think.

actually no..my girlfriend's N900 is new. Got it 3 days ago..

aligatro 2011-01-10 16:24

Re: Root vs sudo gainroot
 
try sudo su. And sudo gainroot only works when your phone is in RD mode.

Mentalist Traceur 2011-01-10 16:24

Re: Root vs sudo gainroot
 
I'm guessing he has that other root package already installed. I never get sudo gainroot asking for a password.

Either way, only difference is root puts you in the /root directory. You can probably just use "root", then run "passwd root" (without the sudo, since you'd be root already) that way.

But I wouldn't be doing that for another person's N900, unless they've made it very clear that they're okay with you doing it.

- Edit -

"sudo gainroot" works just fine without RD mode. Just installing rootsh enables it.

sjgadsby 2011-01-10 16:25

Re: Root vs sudo gainroot
 
Quote:

Originally Posted by aligatro (Post 916984)
try sudo su. And sudo gainroot only works when your phone is in RD mode.

Or if you install rootsh.

Quote:

Originally Posted by mdziaf (Post 916965)
1. I installed the rootsh application on the N900


mdziaf 2011-01-10 16:26

Re: Root vs sudo gainroot
 
Quote:

Originally Posted by aligatro (Post 916984)
try sudo su. And sudo gainroot only works when your phone is in RD mode.

okay will give that a shot.
just out of curiosity,what do you mean by the phone is in RD mode?

aligatro 2011-01-10 16:27

Re: Root vs sudo gainroot
 
Quote:

Originally Posted by mdziaf (Post 916988)
okay will give that a shot.
just out of curiosity,what do you mean by the phone is in RD mode?

Service mode. Or debugging mode


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

vBulletin® Version 3.8.8