maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How can I solve this problem ? ?? Who could teach me ... (https://talk.maemo.org/showthread.php?t=81389)

pursueky 2012-01-06 07:06

How can I solve this problem ? ?? Who could teach me ...
 
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 2012-01-06 07:08

Re: How can I solve this problem ? ?? Who could teach me ...
 
Quote:

Originally Posted by pursueky (Post 1146472)
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?

pursueky 2012-01-06 07:25

Re: How can I solve this problem ? ?? Who could teach me ...
 
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 2012-01-06 07:31

Re: How can I solve this problem ? ?? Who could teach me ...
 
Quote:

Originally Posted by HtheB (Post 1146473)
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

michaaa62 2012-01-06 07:33

Re: How can I solve this problem ? ?? Who could teach me ...
 
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?

pursueky 2012-01-06 07:43

Re: How can I solve this problem ? ?? Who could teach me ...
 
Quote:

Originally Posted by michaaa62 (Post 1146479)
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 .

michaaa62 2012-01-06 09:40

Re: How can I solve this problem ? ?? Who could teach me ...
 
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 ?

Rob1n 2012-01-06 10:02

Re: How can I solve this problem ? ?? Who could teach me ...
 
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.

pursueky 2012-01-06 10:45

Re: How can I solve this problem ? ?? Who could teach me ...
 
Quote:

Originally Posted by michaaa62 (Post 1146505)
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

Rob1n 2012-01-06 11:21

Re: How can I solve this problem ? ?? Who could teach me ...
 
Quote:

Originally Posted by pursueky (Post 1146534)
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).


All times are GMT. The time now is 02:58.

vBulletin® Version 3.8.8