Reply
Thread Tools
pursueky's Avatar
Posts: 191 | Thanked: 46 times | Joined on Jun 2010 @ NanJing China
#1
BusyBox v1.19.3 (Debian 1.19.3power3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root
sudo: must be setuid root
~ $ ls -l /usr/bin/sudo
-rwxr-xr-x 2 root root 90040 Apr 17 2009 /usr/bin/sudo
~ $ chown root:root /usr/bin/sudo
chown: /usr/bin/sudo: Operation not permitted
~ $ chmod 4755 /usr/bin/sudo
chmod: /usr/bin/sudo: Operation not permitted
~ $ reboot
-sh: reboot: not found
 
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#2
Originally Posted by pursueky View Post
BusyBox v1.19.3 (Debian 1.19.3power3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root
sudo: must be setuid root
~ $ ls -l /usr/bin/sudo
-rwxr-xr-x 2 root root 90040 Apr 17 2009 /usr/bin/sudo
~ $ chown root:root /usr/bin/sudo
chown: /usr/bin/sudo: Operation not permitted
~ $ chmod 4755 /usr/bin/sudo
chmod: /usr/bin/sudo: Operation not permitted
~ $ reboot
-sh: reboot: not found
what does "sudo gainroot" do?
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following User Says Thank You to HtheB For This Useful Post:
pursueky's Avatar
Posts: 191 | Thanked: 46 times | Joined on Jun 2010 @ NanJing China
#3
BusyBox v1.19.3 (Debian 1.19.3power3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
sudo: must be setuid root
 
pursueky's Avatar
Posts: 191 | Thanked: 46 times | Joined on Jun 2010 @ NanJing China
#4
Originally Posted by HtheB View Post
what does "sudo gainroot" do?
Nothing else happened:


BusyBox v1.19.3 (Debian 1.19.3power3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
sudo: must be setuid root
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#5
What does the output give you?
Code:
apt-cache policy rootsh
Did you try to get rootsh reinstalled, remove it in some Application Manager, and later install it again?
 

The Following User Says Thank You to michaaa62 For This Useful Post:
pursueky's Avatar
Posts: 191 | Thanked: 46 times | Joined on Jun 2010 @ NanJing China
#6
Originally Posted by michaaa62 View Post
What does the output give you?
Code:
apt-cache policy rootsh
Did you try to get rootsh reinstalled, remove it in some Application Manager, and later install it again?
~ $ apt-cache policy rootsh
rootsh:
Installed: 1.8
Candidate: 1.8
Version table:
*** 1.8 0
500 http://repository.maemo.org fremantle/free Packages
100 /var/lib/dpkg/status
1.5 0
500 http://repository.maemo.org fremantle-1.3/free Packages
500 http://repository.maemo.org fremantle/free Packages
500 http://repository.maemo.org fremantle/free Packages
~ $

And neither the stock Application Manager nor Faster Application Manager work ...... I can't even open them .

Last edited by pursueky; 2012-01-06 at 08:08.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#7
You may shed some light by remembering, what you did recently before the error appeared.
Did you install something weird? Did you edit sudoers file http://wiki.maemo.org/Root_access#A_note_on_sudo? Did you follow some Howto floating around in the internet ?
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#8
If you have ssh installed & setup for root access, then you should be able to get on via that and reset the suid bit on /usr/bin/sudo. You could also try using "su" - I think you'll need to have set up a root password for that though. Otherwise I think you'll need to reflash. If sudo isn't set suid then there's no way for the applications to get root permissions in order to make any other changes.
 

The Following User Says Thank You to Rob1n For This Useful Post:
pursueky's Avatar
Posts: 191 | Thanked: 46 times | Joined on Jun 2010 @ NanJing China
#9
Originally Posted by michaaa62 View Post
You may shed some light by remembering, what you did recently before the error appeared.
Did you install something weird? Did you edit sudoers file http://wiki.maemo.org/Root_access#A_note_on_sudo? Did you follow some Howto floating around in the internet ?
that 's what I did yesterday:
chmod -R 755 /usr/bin
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#10
Originally Posted by pursueky View Post
that 's what I did yesterday:
chmod -R 755 /usr/bin
Yep, that'd do it - you reset the permissions on everything under /usr/bin, stripping off the SUID bit from sudo (and various others). I'd definitely suggest a reflash at this point (and avoiding running that command in future).
 

The Following 3 Users Say Thank You to Rob1n For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:28.