maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   RootSH removed but still giving root access? (https://talk.maemo.org/showthread.php?t=51273)

Dave200 2010-04-28 13:45

RootSH removed but still giving root access?
 
I installed RootSH while messing around with applications, etc. I couldn't remove it so tried a few commands in X Terminal, then I managed to remove it from applications. But it's still giving me root when I type Sudo GainRoot in Terminal. Any ideas on where i've gone wrong and what can I do to fix this problem. I don't want rootsh and I don't want root access if it's typed in. I'm new at this so i'm still learning. :(

Laughingstok 2010-04-28 13:48

Re: RootSH removed but still giving root access?
 
May have to reboot the device to completely shut it off after uninstall.

slender 2010-04-28 13:51

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by Dave200 (Post 631543)
I installed RootSH while messing around with applications, etc. I couldn't remove it so tried a few commands in X Terminal, then I managed to remove it from applications. But it's still giving me root when I type Sudo GainRoot in Terminal. Any ideas on where i've gone wrong and what can I do to fix this problem. I don't want rootsh and I don't want root access if it's typed in. I'm new at this so i'm still learning. :(

Actually you might have found bug :| From which repository you installed it? From extras or devel. Probably extras. Ainīt it then 1.5?
http://maemo.org/packages/view/rootsh/
Someone who knows better could check this.

Dave200 2010-04-28 14:04

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by slender (Post 631552)
Actually you might have found bug :| From which repository you installed it? From extras or devel. Probably extras. Ainīt it then 1.5?
http://maemo.org/packages/view/rootsh/
Someone who knows better could check this.

Yeah it was from the extras repository. Ver 1.5. I've tried restarting and it still gives me root access when I type sudo gainroot. It's not in the uninstallation list. It is however in the download lists. Can this be sorted out or am I stuck with it?

mornage 2010-04-28 14:06

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by slender (Post 631552)
Actually you might have found bug :| From which repository you installed it? From extras or devel. Probably extras. Ainīt it then 1.5?
http://maemo.org/packages/view/rootsh/
Someone who knows better could check this.

From looking at the packages in that link, it would seem that there is a bug in version 1.5. that stops you uninstalling it. I dont know what you did in xterm but you seem to have been able to remove parts of it. It might be worth upgrading or installing 1.8 from extra devels and then uninstalling normally to see if that works.

Dave200 2010-04-28 14:21

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by mornage (Post 631577)
From looking at the packages in that link, it would seem that there is a bug in version 1.5. that stops you uninstalling it. I dont know what you did in xterm but you seem to have been able to remove parts of it. It might be worth upgrading or installing 1.8 from extra devels and then uninstalling normally to see if that works.

How can I do that?

Joorin 2010-04-28 14:48

Re: RootSH removed but still giving root access?
 
Looking at the .deb file, it seems like the postinst script creates a script, gainroot, that's perhaps not handled very well at uninstall?

Dave200 2010-04-28 14:55

Re: RootSH removed but still giving root access?
 
I've installed version 1.8 from the extras-devel. I then un-installed it. But it stills gives me root access when I type sudo gainroot. Any ideas?

mornage 2010-04-28 15:00

Re: RootSH removed but still giving root access?
 
have you got anything else that might give you root access? I think ssh does and maybe debian?

Dave200 2010-04-28 15:03

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by mornage (Post 631662)
have you got anything else that might give you root access? I think ssh does and maybe debian?

No, nothing at all that gives root access. I'm really quite stumped on this one. I was wondering though, I noticed a Ver 1.4. Would that be worth trying? But how would I get that?

Dave200 2010-04-28 15:10

Re: RootSH removed but still giving root access?
 
Okay, I have installed Ver: 1.8 again. I've rebooted the phone. If someone coud give me precide instructions on what to do next and see if that works? I can do it in terminal but would need to be told each command, etc.

Joorin 2010-04-28 15:19

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by mornage (Post 631662)
have you got anything else that might give you root access? I think ssh does and maybe debian?

Pardon? What are you talking about?

If you, via ssh, log in as root, you become root. That's something completely different than using "sudo gainroot" to become root locally.

Debian can't by itself do anything, since it's, as far as I know, a Linux distribution.

If OP removes the file /usr/sbin/gainroot file it will not be possible to become root using "sudo gainroot" any longer. Perhaps I wasn't clear enough about this in my earlier post. This is done with
Code:

sudo gainroot
rm /usr/sbin/gainroot


Dave200 2010-04-28 15:22

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by Joorin (Post 631697)
Pardon? What are you talking about?

If you, via ssh, log in as root, you become root. That's something completely different than using "sudo gainroot" to become root locally.

Debian can't by itself do anything, since it's, as far as I know, a Linux distribution.

If OP removes the file /usr/sbin/gainroot file it will not be possible to become root using "sudo gainroot" any longer. Perhaps I wasn't clear enough about this in my earlier post. This is done with
Code:

sudo gainroot
rm /usr/sbin/gainroot


Should I remove Rootsh first then do the command, or do the command first and then remove rootsh from applications?

mornage 2010-04-28 15:31

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by Joorin (Post 631697)
Pardon? What are you talking about?

I did say maybe and was only giving ideas of things that might have enabled root access. Wasn't sure how SSH worked as I have never used it and wasn't sure if debian chroot that comes with easy debian would give root access.

I was only trying to help and as you didn't actually provide a solution I carried on troubleshooting as best I could.

Dave200 2010-04-28 16:09

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by Joorin (Post 631697)
Pardon? What are you talking about?

If you, via ssh, log in as root, you become root. That's something completely different than using "sudo gainroot" to become root locally.

Debian can't by itself do anything, since it's, as far as I know, a Linux distribution.

If OP removes the file /usr/sbin/gainroot file it will not be possible to become root using "sudo gainroot" any longer. Perhaps I wasn't clear enough about this in my earlier post. This is done with
Code:

sudo gainroot
rm /usr/sbin/gainroot


It worked! Thanks very much. Will make sure to remember these commands, etc.

zimon 2010-04-28 16:29

Re: RootSH removed but still giving root access?
 
Code:

$ sudo su -
#

(I think that will work even after gainroot is removed.)

Dave200 2010-04-28 17:17

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by zimon (Post 631801)
Code:

$ sudo su -
#

(I think that will work even after gainroot is removed.)

It asks for a password. Does anyone know what the password is?

zimon 2010-04-29 08:45

Re: RootSH removed but still giving root access?
 
Quote:

Originally Posted by Dave200 (Post 631859)
It asks for a password. Does anyone know what the password is?

If you have ssh-server installed, maybe it asks that password you set when sshd-package was installed.


All times are GMT. The time now is 06:31.

vBulletin® Version 3.8.8