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 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 09:39.

vBulletin® Version 3.8.8