![]() |
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 |
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
|
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 |
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
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 |
Re: How can I solve this problem ? ?? Who could teach me ...
What does the output give you?
Code:
apt-cache policy rootsh |
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
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 . |
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 ? |
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.
|
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
chmod -R 755 /usr/bin |
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
|
Re: How can I solve this problem ? ?? Who could teach me ...
Backupmenu is also a suggestion for situations like this. It only takes a few minutes to make a backup and you can restore the entire system if something goes wrong.
|
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
|
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
|
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
If you already have sshd installed, you may be able to get access that way, as suggested earlier. If not, maybe you'll luck out and something somewhere else has an suid-bit set you can exploit in some way. Try this command: Code:
find / -perm -4000 -print Code:
Nokia-N900-42-11:~/scripts# ls -l `find /usr/bin -perm -4000` |
Re: How can I solve this problem ? ?? Who could teach me ...
Rescue OS (search forum) is also and idea, for people that haven't installed backupmenu.
Just out of curiosity - may I ask, why You decided to execute so ridiculous command? I admit that it's better than rm -r /, but i still can't see any sane reasons to even think about that, /Estel |
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
Please stop complaining about what you have not installed, just answer the questions about what actually is installed to gain the rights of root. If non of the methods you were asked before in this thread are installed, go to the wiki page about reflashing http://wiki.maemo.org/Updating_the_tablet_firmware |
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
and it needs to do python2.6 xx so I chmod the whole dir. |
Re: How can I solve this problem ? ?? Who could teach me ...
Quote:
Outside of that, only about 3 other files on my device are suid, and none of them are anything you can use to break in. All the more reason to install BackupMenu and/or sshd right from the get-go on a new system. |
All times are GMT. The time now is 08:00. |
vBulletin® Version 3.8.8