Reply
Thread Tools
AgogData's Avatar
Posts: 870 | Thanked: 133 times | Joined on Aug 2010
#1
I have rootsh installed from the day i got my phone and since every sudo action (except for sudo gainroot) it asks for my password, so i edited it many times yet it doesn't accept it. So i downloaded sudser as an advice from some1. but when i tried to remove it :

Code:
Nokia-N900:~# apt-get remove sudser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  sudser
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 36.9kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 75888 files and directories currently installed.)
Removing sudser ...
dpkg: error processing sudser (--remove):
 subprocess post-removal script returned error exit status 255
Errors were encountered while processing:
 sudser
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nokia-N900:~#
I even tried --reinstall install
and thats the /var/lib/dpkg/info/sudser.postrm if its related

Code:
#!/bin/sh

case "$1" in
    remove)
        rm -f /etc/sudoers.d/everybody.sudoers
        /usr/sbin/update-sudoers
        ;;
esac
Any help will be appreciated,
thanks
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#2
Have you tried running those commands manually and seeing what errors you get?
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#3
if you want to remove sudser Only
so removing sudo (anything) feature
then:

sudo gainroot

rm /etc/sudoers.d/everybody.sudoers
update-sudoers

Then reinstall sudser from .deb file
Then Remove it (probably removing it directly will solve the problem)

Last edited by karam; 2011-06-20 at 14:35.
 
AgogData's Avatar
Posts: 870 | Thanked: 133 times | Joined on Aug 2010
#4
Originally Posted by Rob1n View Post
Have you tried running those commands manually and seeing what errors you get?
Originally Posted by karam View Post
if you want to remove sudser Only
so removing sudo (anything) feature
then:

sudo gainroot

rm /etc/sudoers.d/everybody.sudoers
update-sudoers

Then reinstall sudser from .deb file
Then Remove it (probably removing it directly will solve the problem)
Nothing new happened after
rm -f /etc/sudoers.d/everybody.sudoers
update-sudoers
these codes are entered without any problem then i reinstalled sudser and tried to remove it and get the same problem, then i typed the codes again and tried to remove sudser at once but also with the same issue ! why does sudser refuse to get the **** out ?
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#5
well this is pretty dangerous but looks like there is no way else

rm /etc/sudoers.d/everybody.sudoers
rm /var/lib/dpkg/info/sudser.postrm
sudser # then try to skip and don't enter a pass)

then reinstall it
then :

rm /var/lib/dpkg/info/sudser.postrm # if it didn't work repeat the steps but without this one

then remove it
 

The Following User Says Thank You to karam For This Useful Post:
AgogData's Avatar
Posts: 870 | Thanked: 133 times | Joined on Aug 2010
#6
thanks alot karam, this solved the problem
are there any collateral damages ? or asking for passwords here or there (even on phone startup) ?
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:51.