![]() |
[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
|
Re: n900 how to become a root
Quote:
|
Re: n900 how to become a root
Quote:
Unless you have a specific reason for enabling it (root access doesn't count), don't. |
Re: n900 how to become a root
You can tell by that detailed report that GeneralAntilles had to try it himself, just to see what happened :D ;)
|
Re: n900 how to become a root
Quote:
|
Re: n900 how to become a root
|
Re: n900 how to become a root
Quote:
|
Re: n900 how to become a root
Quote:
e: doesn't passwd work? |
Re: n900 how to become a root
Quote:
Then just use the root shell to run <anything>. Regards, Roger |
Re: n900 how to become a root
I got it. Thank you all. Sorry for disturbing you.
|
Re: n900 how to become a root
Quote:
Quote:
|
Re: n900 how to become a root
can anyone just clarify what the root password on the n900 is
sometimes the command sudo gainroot will enable the shell othertimes it asks me for a password which i have never set from reading the forums and wiki entrys i sort of found it could be either rootme passwd is any of them correct it would be really handy to know as sometimes it wont let me enable shell unless i enter a password thanks and sorry to bump an old thread like this just thought it better then startinga new one |
Re: n900 how to become a root
I would need it too. I would appreciate a lot if someone could answer :) Thank you
|
Re: n900 how to become a root
I've just re-flashed my N900.
I've seen the wiki: http://wiki.maemo.org/Root_access I've already instaled roothsh. My problem is: Before reflash, i easly can do: sudo echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq now, it says access denyed. If i do: sudo /usr/sbin/kernel-load It prompt for password :S help please |
Re: n900 how to become a root
try sudo gainroot
|
Re: n900 how to become a root
sudo gainroot works, thats not the problem.
If anyone try : sudo echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq you'll sucessefull do it ! i cant do it .. What is wrong with this device ..i've only reflashed it..my god : C |
Re: n900 how to become a root
Quote:
Your command will run echo as root, but then pipe to a privileged file *without* root privileges. For example, the following code rightly fails on my Ubuntu system (and on any Linux system): Code:
$ sudo echo a > /hello Code:
echo 900000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
Re: n900 how to become a root
When I run su - to login as root, it gives me the error "su: must be suid to work properly." I then changed permissions for busybox: chmod 4755 /bin/busybox. Now I am able to run the su command. My question is, for the n900/maemo platform, what will changing the permissions to busybox (as I did) affect or impact?
|
Re: n900 how to become a root
this is going to sound like the most ignorant quesion ever but I have to ask. What are the advantages on becoming "root" on the N900? I'm obviously a noob and would understand if my account is banned because of this post lol
|
Re: n900 how to become a root
Quote:
|
Re: n900 how to become a root
Quote:
Serach and you will find how to do it. |
Re: n900 how to become a root
Quote:
|
Re: n900 how to become a root
Overclocking. NITDroid. Secure Shell. Easy Debian... the list is pretty long, you have a couple of days to listen?
|
Re: n900 how to become a root
Quote:
For a normal user of the maemo system the root is not necessary. You can install and play with the normal things anyway. But if you would like to become a power user you need it. Like editing config-files, overclocking e.t.c... and it is here the real power of the n900 lays. The abillity to tweak the hell of it. I have been using linux for quite some time now but did use windows before. And i would say that the linux way is more logical though it can be confusing in the beginning. |
Re: n900 how to become a root
lol I just want to "unleash" my N900
|
Re: n900 how to become a root
Quote:
|
Re: n900 how to become a root
Before this thread gets to long and more and more people contribute or ask questions I like to end this up with a summary.
To become root on your n900's Maemo5 you need to install rootsh, then you may become root by typing Code:
root Code:
sudo gainroot If your "sudo <command>" does not work with permission denied you are probably trying to do two things at once where the first command is with root permissions but the 2nd isn't. Please be sure to know your way around at the CLI before you proceed or follow step-by-step instructions carefully! DO NOT ACTIVATE R&D MODE IF ONLY FOR ROOT PRIVILEGES |
All times are GMT. The time now is 04:01. |
vBulletin® Version 3.8.8