View Single Post
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#14
Originally Posted by pursueky View Post
But I can't install apps also can't remove any one.
The concept is to have already installed BackupMenu, and made a backup. It's like saying "you should restore from backups" and you're saying "but I didn't do a backup". If you didn't already do a backup, you're pretty SOL. BackupMenu also would give you the option of mounting the whole file system directly on another machine, where you could then edit permissions on the raw files if you liked...

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
That may find something suid you can use to "break in" with? If you do manage to get in, you'll need to fix several files:

Code:
Nokia-N900-42-11:~/scripts# ls -l `find /usr/bin -perm -4000`
-rwsr-xr-x    1 root     root       /usr/bin/chfn
-rwsr-xr-x    1 root     root       /usr/bin/chsh
-rwsr-xr-x    1 root     root      /usr/bin/eapd
-rwsr-xr-x    1 root     root       /usr/bin/fusermount
-rwsr-xr-x    1 root     root      /usr/bin/gpasswd
-rwsr-xr-x    1 root     root      /usr/bin/gpg
-rwsr-xr-x    1 root     root      /usr/bin/hildon-sv-notification-daemon
-rwsr-xr-x    1 root     lpadmin  /usr/bin/lppasswd
-rwsr-xr-x    1 root     root        /usr/bin/mission-control
-rwsr-xr-x    1 root     root        /usr/bin/passwd
-r-sr-sr-x    1 root     root        /usr/bin/pnatd
-rwsr-xr-x    1 root     root         /usr/bin/rclockd
-rwsr-xr-x    2 root     root      /usr/bin/sudo
-rwsr-xr-x    2 root     root       /usr/bin/sudoedit
Edit: One thing of note, /bin/su would be unaffected by this. So if you have set a root password (via sshd or sudo in the past), you should still be able to use /bin/su - to change to root and fix things that way.

Last edited by woody14619; 2012-01-07 at 00:17.
 

The Following 2 Users Say Thank You to woody14619 For This Useful Post: