maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [CLI] how to become root (https://talk.maemo.org/showthread.php?t=33911)

brankomilosevic 2009-11-03 14:44

[CLI] how to become root
 
Hello,

Can anyone explain how to become a root on my n900?

I did try:

edit /etc/gainroot - no permission.
ssh root@localhost - no ssh
sudo su - - password required (I do not have password)
passwd user - user password can not be changed
...

Marshall Banana 2009-11-03 14:47

Re: n900 how to become a root
 
Hi,

i think you have to install this first:
Rootsh

and/or do: sudo gainroot

MrGrim 2009-11-03 14:54

Re: n900 how to become a root
 
Isn't rootsh pre-installed? Or are we talking about the emulator?

sjgadsby 2009-11-03 14:56

Re: n900 how to become a root
 
Quote:

Originally Posted by MrGrim (Post 364540)
Isn't rootsh pre-installed?

No. X Terminal comes installed. rootsh requires a simple installation via the Application manager.

mikemorrison 2009-11-03 23:21

Re: n900 how to become a root
 
enable RD mode by using the flasher available here:

http://maemo.org/news/announcements/...ablo_released/

then to become root you can type:

Code:

sudo gainroot

GeneralAntilles 2009-11-03 23:53

Re: n900 how to become a root
 
Quote:

Originally Posted by mikemorrison (Post 364898)
enable RD mode by using the flasher available here:

No. You want rootsh.

R&D mode has additional performance and stability consequences that most users do not want. Please don't recommend it. :)

Bruce 2009-11-03 23:54

Re: n900 how to become a root
 
If you "sudo su" on a normal Unix box the password expected is your user accounts password.

Normally your account must be listed in /etc/sudoers

You also should be able to run programs as root by placing sudo before the name of the program.

qole 2009-11-04 00:09

Re: n900 how to become a root
 
If you install the openssh packages from the repositories, you can use the ssh root@localhost technique as well...

Netweaver 2009-11-04 01:06

Re: n900 how to become a root
 
I installed the 'rootsh' package but when executing the 'sudo gainroot' command in the xterm, in the 'device' screen, I'm getting :
Code:

'sudo: must be setuid root'
when I do in Scratchbox a 'ls -l /usr/bin/sudo' I'm getting this:

Code:

-rwsr-xr-x 2 maemo maemo 84212 2009-04-17 /usr/bin/sudo
shouldn't this be owned by root/root in a normal Linux install ? But this is under Scratchbox, already an emulated install...

anyway, I removed rootsh and reinstalled : same issue.
BTW, the package I'm installing has version 1.5.

the syntax 'rootsh <any single command>' seems to work, the rootsh shell script is created in the /usr/sbin directory but actually it doesn't have root powers either.

Is this supposed to work at all in the SDK ?
Thanks.

mikkov 2009-11-04 01:28

Re: n900 how to become a root
 
use fakeroot in scratchbox


All times are GMT. The time now is 01:55.

vBulletin® Version 3.8.8