maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   How to disable root access? (https://talk.maemo.org/showthread.php?t=36345)

mikkov 2009-12-09 00:35

Re: How to disable root access?
 
Quote:

Originally Posted by smage (Post 417763)
ok
I run these and the old file is replaced. However, rootsh is still installed and even after a device restart I'm still able to gain root. Also in the package manager, rootsh is still shown as installe.

That's because you didn't remove it at any point. Try to remove it as root from command line:
dpkg -r rootsh

If it doesn't work, copy&paste the output here.

smage 2009-12-09 00:46

Re: How to disable root access?
 
it didn't work.

The output is below:
(reading database ... 25649 files and directories currently installed)
Removing rootsh ...
/var/lib/dpkg/info/rootsh.prerm: line 5: syntax error: "fi" unexpected (expecting "then")
dpkg: error processing rootsh (--remove):
subprocess pre-removal script returned error exit status 2 Errors were encountered while processing:
rootsh

/home/user # ..............

ok any suggestions now? :P

mikkov 2009-12-09 01:01

Re: How to disable root access?
 
OK, rootsh package is broken, unbelievable.

But because you already manually did prerm script command, you can just delete it.

rm /var/lib/dpkg/info/rootsh.prerm

and then remove rooths package

smage 2009-12-09 01:05

Re: How to disable root access?
 
rm /var/lib/dpkg/info/rootsh.prerm worked.

finally rootsh succesfully uninstalled, thanks everyone :)

smage 2009-12-09 01:15

Re: How to disable root access?
 
Ok it's uninstalled now but I'm stil able to gain root access

mikkov 2009-12-09 01:36

Re: How to disable root access?
 
What is the content of gainroot files?

cat /usr/sbin/gainroot.old
cat /usr/sbin/gainroot

smage 2009-12-09 07:30

Re: How to disable root access?
 
The two files are identical.

Their content is below:


#!bin/sh
#From Andrey Gubarev easyroot
trap exit SIGHUP SIGINT SIGTERM
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ "$1" = "--use-su" ]
then
exec su -
else
echo "Root shell enabled"
/bin/sh
fi

Lazarpandar 2009-12-09 07:43

Re: How to disable root access?
 
Quote:

Originally Posted by Devil (Post 417708)
OT: is it me or is this programming language and stuff major boring *****?

Somebody bought the wrong phone.

funpig 2009-12-09 08:07

Re: How to disable root access?
 
mark it. and waiting for study more.

myk 2009-12-09 09:01

Re: How to disable root access?
 
Quote:

Originally Posted by Devil (Post 417708)
i mean i am not dumb but seriously. its just friggin letters and symbols and combinations of it. i study math, which is quite the same actually. just dont see why i am doing that. and reading the coding stuff. cant get there with my mind.

It sounds like there is a problem with your first premise. Unless there is a joke we missed??


All times are GMT. The time now is 14:44.

vBulletin® Version 3.8.8