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)

buxz777 2010-02-01 22:12

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

Remyros 2010-03-18 22:42

Re: n900 how to become a root
 
I would need it too. I would appreciate a lot if someone could answer :) Thank you

nokian-series 2010-04-18 22:54

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

shadowjk 2010-04-18 23:07

Re: n900 how to become a root
 
try sudo gainroot

nokian-series 2010-04-19 06:39

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

ceefour 2010-05-27 07:36

Re: n900 how to become a root
 
Quote:

Originally Posted by nokian-series (Post 616810)
Before reflash, i easly can do:
sudo echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

I don't think you could do that even before reflash.

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
bash: /hello: Permission denied

What you should do is like this:

Code:

echo 900000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
(but you have to get sudo working correctly first)

jjpm 2010-08-15 02:14

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?

nokiaboy97 2010-08-30 05:52

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

AlMehdi 2010-08-30 05:59

Re: n900 how to become a root
 
Quote:

Originally Posted by nokiaboy97 (Post 801996)
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

Without "root" privileges you can't edit or change files outside your "/home" folder. For a normal user that is no problem.. but if you want to do the cool stuff then you need root. The n900 is really not the same without rootsh.

AlMehdi 2010-08-30 06:01

Re: n900 how to become a root
 
Quote:

Originally Posted by nokian-series (Post 617176)
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

It's nothing wrong with the device.. it acts as it should. You need to edit your sudoers file to allow sudo with NOPASSWD. If you do not then sudo will give you a password.

Serach and you will find how to do it.


All times are GMT. The time now is 05:00.

vBulletin® Version 3.8.8