maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Maemo 5] Urgent help!!! Accidentally removed rootsh (https://talk.maemo.org/showthread.php?t=74440)

CasTTeLLo 2011-06-29 03:24

[Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Hi guys....

I accidently remove rootsh and unable to install it conflict with sudser...when i open x term and type sudo gainroot i got this output :

Code:

~ $ sudo gainroot
Enable RD mode if you want to break your device

i'm so nervous now.....what should i do??

dtparikh 2011-06-29 04:01

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Did you try installing rootsh from Application Manager ?

CasTTeLLo 2011-06-29 04:07

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
yes but it cant find the package....

maemo.org/downloads/product/Maemo5/rootsh/

Mentalist Traceur 2011-06-29 04:22

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
There's nothing to be nervous about. No PROPER script or application should use sudo gainroot directly in scripts or whatever, so IDEALLY, nothing should break beyond your ability to do things as root.

If you have sudser installed and it works as advertized, you should be able to do the same things as rootsh does, just with different commands. Honestly though, I'd just uninstall sudser, then install rootsh. And if you really want, you can always install sudser back on afterwords. You DID manage to somehow install both - unless you installed sudser after uninstalling rootsh.

If you remove sudser, update your catalogues / "check for updates", and then still can't install rootsh, you can download it from the Maemo package interface (maemo.org/packages), put it onto your N900's USB storage or microSD card, and then click on it in the file manager, which will install it with HAM.

CasTTeLLo 2011-06-29 04:31

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
which version should i download??? any chance to do it with xterm???

CasTTeLLo 2011-06-29 05:15

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
i've copy rootsh to mmc then open it with app manager when app manager popup i get an error unable to install rootsh...application package not found?? how to remove sudser btw??

Remus 2011-06-29 05:38

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by CasTTeLLo (Post 1041225)
i've copy rootsh to mmc then open it with app manager when app manager popup i get an error unable to install rootsh...application package not found?? how to remove sudser btw??

Hi ya there!

Let me help you the best I can.

I'm using this package for rootsh./ If you for some odd reason can't install it via HAM I suggest trying to log in as the root user and installing it via x-term.

Sadly, You can only login as root if you changed the root-password, (if you have openssh installed you have changed it) so unless you have'nt changed the password for root You'll have to go with HAM.

And remember to give it a few moments. HAM can be slower than a koala.

If you keep encountering errors while trying to install with HAM, please post the contents of your error log and I'll have a looksee at it.

Best of luck.

CasTTeLLo 2011-06-29 05:42

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by Remus (Post 1041230)
Hi ya there!

Let me help you the best I can.

I'm using this package for rootsh./ If you for some odd reason can't install it via HAM I suggest trying to log in as the root user and installing it via x-term.

Sadly, You can only login as root if you changed the root-password, (if you have openssh installed you have changed it) so unless you have'nt changed the password for root You'll have to go with HAM.

And remember to give it a few moments. HAM can be slower than a koala.

If you keep encountering errors while trying to install with HAM, please post the contents of your error log and I'll have a looksee at it.

Best of luck.

thanks mate....can u guide me with simple step....i did change the root-passw...so how i'm going to use it via xterm....??

Remus 2011-06-29 05:48

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by CasTTeLLo (Post 1041231)
thanks mate....can u guide me with simple step....i did change the root-passw...so how i'm going to use it via xterm....??

Alright! I'm going to assume you know the basics of how to use the terminal.

Open up x-term and use the command "su".

It should prompt for the root-password. Enter the password and you'll (hopefully) be root.

Cd to where you saved your rootsh-package and type;

dpkg -i rootsh_1.5_armel.deb

And voila, that should install rootsh on your device.

[EDIT]

Come to think off it, as long as you are root you can just use apt for installing rootsh. Assuming you have extras in your repos, that is.

If you encounter any errors with the .deb instead issue the following command;

apt-get install rootsh

CasTTeLLo 2011-06-29 06:06

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
i've a meeting now...i'll try it later.....tq so much mate...

Remus 2011-06-29 06:10

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by CasTTeLLo (Post 1041241)
i've a meeting now...i'll try it later.....tq so much mate...

Glad to be helping.

I also realized you may have some trouble with not being able to issue the command "su" as "user". To work around this, simply ssh into your device as "root".

If this doesn't work, I hope you find some solution to your problem.

CasTTeLLo 2011-06-29 10:52

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
problem solved!! :) but why when i'm trying to apt-get update, rootsh package have been kept back?? or there is a new version of rootsh??? just curious.....thanks Remus for helping me.....

jedi 2011-06-29 11:09

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by CasTTeLLo (Post 1041371)
problem solved!! :) but why when i'm trying to apt-get update, rootsh package have been kept back?? or there is a new version of rootsh??? just curious.....thanks Remus for helping me.....

I believe you installed Epitaph's crapware? The problem is likely to be related to it - in the install.sh script there are these lines:
Code:

if [ ! -f "/etc/apt/preferences" ] ; then
  touch /etc/apt/preferences
  echo 'Package: rootsh
Pin: release a=unstable
Pin-Priority: 1001' >> /etc/apt/preferences
fi

...which I believe will cause your problem.

If I had accidentally installed this 'app' I would seriously consider a complete re-flash due to the dubious nature of the code - it could include backdoors/password stealing etc. This is only my personal opinion.

CasTTeLLo 2011-06-29 11:34

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
wtf?? community should take an action to him if so....this is so dangerous...any other way to keep my device safe besides re-flash??? so regrets....

jedi 2011-06-29 11:37

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by CasTTeLLo (Post 1041398)
wtf?? community should take an action to him if so....this is so dangerous...any other way to keep my device safe besides re-flash??? so regrets....

Like I said - that's only my personal opinion. It's up to you to decide.

CasTTeLLo 2011-06-29 11:43

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
yes...if possible I do not want to reflash because i have a lot of softwares and games....there is other way or not ??

CasTTeLLo 2011-06-29 12:44

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
any other way to keep my device safe besides re-flash???

ammyt 2011-06-29 13:00

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
epitaph has just pissed in his pants XD

Remus 2011-06-29 14:42

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by CasTTeLLo (Post 1041371)
problem solved!! :) but why when i'm trying to apt-get update, rootsh package have been kept back?? or there is a new version of rootsh??? just curious.....thanks Remus for helping me.....

Glad to hear you're in safe waters.

CasTTeLLo 2011-06-29 14:45

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by Remus (Post 1041523)
Glad to hear you're in safe waters.

safe but not safe.......

Remus 2011-06-29 15:10

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by CasTTeLLo (Post 1041526)
safe but not safe.......

Well, let's make it feel a bit more safe then?

First we'll take a look at the open ports on your device. This can be done either with nmap or netstat. You'll be better off with netstat this time.

From your x-terminal run;

Code:

sudo gainroot
netstat -lptu

That should print the currently open ports and what program is using it. Run this once every few hours and keep an eye open for strange activities.

That, atleast, gives you a bit of a overview of your network but if Epitaph's package does contain malicious sofware this trick probably will not be enough to flush out everything.

As a side note, there are ways to backup your currently installed games, programs and so forth if you end up reflashing.

jedi 2011-06-30 07:29

Re: [Maemo 5] Urgent help!!! Accidentally removed rootsh
 
Quote:

Originally Posted by Remus (Post 1041542)
Well, let's make it feel a bit more safe then?

First we'll take a look at the open ports on your device. This can be done either with nmap or netstat. You'll be better off with netstat this time.

From your x-terminal run;

Code:

sudo gainroot
netstat -lptu

That should print the currently open ports and what program is using it. Run this once every few hours and keep an eye open for strange activities.

That, atleast, gives you a bit of a overview of your network but if Epitaph's package does contain malicious sofware this trick probably will not be enough to flush out everything.

As a side note, there are ways to backup your currently installed games, programs and so forth if you end up reflashing.

That's a good idea, but don't be lulled into a false sense of security doing this. It only shows programs running listening on certain ports, waiting for an incoming connection. It won't show you any programs making outgoing connections.

And you're quite right - if someone was writing a malicious back-door they'd probably make efforts to stop it from showing up in a list like this.


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

vBulletin® Version 3.8.8