![]() |
[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 ... |
Re: n900 how to become a root
|
Re: n900 how to become a root
Isn't rootsh pre-installed? Or are we talking about the emulator?
|
Re: n900 how to become a root
Quote:
|
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 |
Re: n900 how to become a root
Quote:
R&D mode has additional performance and stability consequences that most users do not want. Please don't recommend it. :) |
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. |
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...
|
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' Code:
-rwsr-xr-x 2 maemo maemo 84212 2009-04-17 /usr/bin/sudo 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. |
Re: n900 how to become a root
use fakeroot in scratchbox
|
All times are GMT. The time now is 07:58. |
vBulletin® Version 3.8.8