Notices


Reply
Thread Tools
Posts: 169 | Thanked: 41 times | Joined on Apr 2010 @ Portugal
#1
Hi all, I've tried to send a PM to QWERTY12, the guy who has ported to N900 the ROOTSH. I cant send the PM to him, i hope he can see here or anyone can help me. Here is my problem (A copy of message i tried to send to QWERTY12)

"
Hi,
I've been talking with a lot of members of maemo.talk, and i cant solve my problem.

I just reflashed my N900 (First the flash image, then the EMMC, without rebooting, all goes good there).

Then, i tried to install rootsh (1.5 and 1.8), it says install sucessfull but i can use it well.

When i use sudo <command> sometimes it say i dont have permissions, other times prompt for password.

I've this problem since last 4 days, i'm getting crazy, the only thing i make was reflash my device

If i do this on x-terminal:
sudo gainroot
dpkg -l rootsh

The output is:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/home/user # dpkg -l rootsh
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii rootsh 1.8 Enable root access, via the "sudo gainroot"
/home/user #


I've tryed already to:

sudo gainroot
dpkg --purge rootsh
apt-get install rootsh

But stills the same problems, stills the same information with erros.

Can you please help me..i'm so tired, my last 62 hours was reading and talking with people, no one can help me.
I just reflash my device, i've tried to do again 2 ou 3 times, but the same problem.

Qwerty12..please can you help me..i'll be appreciat to the rest of my life

I'm so sad..help me please.."

Last edited by nokian-series; 2010-04-20 at 07:54. Reason: Correct some text.
 
Posts: 303 | Thanked: 175 times | Joined on Oct 2009 @ London UK
#2
install rootsh (you've done that)
sudo gainroot (gets you a root shell)

that is all..

it doesn't do any thing else.

sudo other-command

won't work because only a few commands are defined in /etc/sudoers..

From what you've posted, I can't see a problem.. it looks like it is working correctly

you can ONLY use

sudo gainroot
 

The Following User Says Thank You to cpitchford For This Useful Post:
NokiaRocks's Avatar
Posts: 658 | Thanked: 117 times | Joined on Jan 2010
#3
I dont rly see a problem too dude.
 
Posts: 169 | Thanked: 41 times | Joined on Apr 2010 @ Portugal
#4
I cannot use some commands for exemple, from here:
http://talk.maemo.org/showpost.php?p...postcount=2718

sudo rm -f /etc/default/kernel-power
sudo ln -s /usr/share/kernel-power-settings/ideal /etc/default/kernel-power
sudo /usr/sbin/kernel-load

It returns me:

~$ sudo /usr/sbin/kernel-load
Password:
~$

~$ sudo rm -f /etc/default/kernel-power
Password:

... So, have i to type Sudo <command> or not? is there..in the wiki..and i do that before reflash..

I already put 'user ALL = PASSWORD: ALL' on the sudoers file, for testing..ok, password disapear, but it says permission denied.

Please..i know my english is not so good, but..i know what i do on my n900 before reflash and now..i cant do anything...please help..yes its a problem...that dpkg output for rootsh its wrong..just try on your phones..

Please..help me :'(



Originally Posted by cpitchford View Post
install rootsh (you've done that)
sudo gainroot (gets you a root shell)

that is all..

it doesn't do any thing else.

sudo other-command

won't work because only a few commands are defined in /etc/sudoers..

From what you've posted, I can't see a problem.. it looks like it is working correctly

you can ONLY use

sudo gainroot
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#5
Just type root, hit enter, and type the command without the sudo part.
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#6
The post said:
"Ideally, you would install it and then as user (remove "sudo" before the command if you are root)"

Edit: Man you're fast.
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#7
nokian-series:

I would just forget the sudo stuff if I were you.

Just do this.

1. Open xterm.
2. Type root and hit enter.

You are root now and can do commands without sudo.

Just to make sure type whoami and hit enter.

You should get the response that you are root.
 
Posts: 169 | Thanked: 41 times | Joined on Apr 2010 @ Portugal
#8
I've tryed to do:
sudo gainroot

then the commands:

/usr/sbin/kernel-load /usr/share/kernel-power-settings/ideal
(ok, conky is showing + Mhz)
but, if i try to:
rm -f /etc/default/kernel-power
ln -s /usr/share/kernel-power-settings/ideal /etc/default/kernel-power
/usr/sbin/kernel-load

Then reboot..when i boot up..i have the default config. to 600 Mhz max.
I can't apply those commands as root (yes, i've done whoami, it says root).

I think it's here something really strange

After reflash, i can do all of this.

But, tell me, can anyone do in your phone who have rootsh installed:

sudo gainroot
dpkg -l rootsh

and put here the output?

I might have filesystem corrupted or something strange :S
 
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#9
Originally Posted by nokian-series View Post
I already put 'user ALL = PASSWORD: ALL' on the sudoers file, for testing..ok, password disapear, but it says permission denied.
You need to be careful when you edit your sudoers file. If you mess it up you may not be able to perform any commands as a superuser (including fixing the sudoers file!).

Make sure you always use the visudo command as root rather than directly editing the file and it will warn you of syntax errors.

To get the behaviour you seem to want you need to change the line above (using visudo) to:

user ALL = NOPASSWD: ALL

It seems that rootsh is doing it's job correctly, i.e. giving you root access when you type root or sudo gainroot. The output from dpkg -I rootsh tells you this (the ii in the first column means installed).

It seems your only problem is with your clock settings resetting to default when you reboot - are you sure this isn't expected behaviour? If it's not you'll probably find much more informed help on the overclock thread than here.

Cheers,
Jan
 

The Following User Says Thank You to Big Phat Jan For This Useful Post:
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#10
Originally Posted by nokian-series View Post
But, tell me, can anyone do in your phone who have rootsh installed:

sudo gainroot
dpkg -l rootsh

and put here the output?
The result from dpkg -l rootsh that you posted above looks exactly as it should and is identical to mine, apart from the fact that I have version 1.5.

Did you really ever have been asked for a password when typing "sudo gainroot" as you said in your first post?
__________________
Need more apps for the N900? Check out Qole's Easy Debian and read the wiki!
My Easy Debian installation log
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:28.