Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-04-2014, 12:10 PM   #1
seffka_p
Junior Member
seffka_p began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
Exclamation Troubles after 5.6.1 update

Hi guys!

Today my K got update to 5.6.1 (Yes, I know, I had to install OTA prevention, but I didn't) So, I lost some hacks, but I was really glad to know that KUAL still work. In KUAL, I had only kterm and KOReader. kterm is working, but KOR isn't. Can I get it work someway? I really need to read DJVUs on my K.

Thank you
seffka_p is offline   Reply With Quote
Old 12-04-2014, 12:16 PM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
You have kTerm still working?
As what user?
(Enter:
whoami
)

If your (still) root - then you probably can fix things up from the kTerm command line.
knc1 is offline   Reply With Quote
Advert
Old 12-04-2014, 12:19 PM   #3
seffka_p
Junior Member
seffka_p began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
Quote:
Originally Posted by knc1 View Post
You have kTerm still working?
As what user?
(Enter:
whoami
)

If your (still) root - then you probably can fix things up from the kTerm command line.
No. It printed "framework".

When I execute "login root" is reports "login: must be suid to work properly"

Last edited by seffka_p; 12-04-2014 at 12:25 PM.
seffka_p is offline   Reply With Quote
Old 12-04-2014, 01:38 PM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by seffka_p View Post
No. It printed "framework".

When I execute "login root" is reports "login: must be suid to work properly"
login is not the command you want.

your running as user 'framework'
you want to 'switch user' (I.E: su) without root having a password.

check the files in NiLuJe's most recent jailbreak package, there may be an 'su' utility in there, if there is, it is one that doesn't check for or ask for a password.
knc1 is offline   Reply With Quote
Old 12-04-2014, 01:49 PM   #5
seffka_p
Junior Member
seffka_p began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2014
Device: Kindle PW2
Quote:
Originally Posted by knc1 View Post
login is not the command you want.

your running as user 'framework'
you want to 'switch user' (I.E: su) without root having a password.

check the files in NiLuJe's most recent jailbreak package, there may be an 'su' utility in there, if there is, it is one that doesn't check for or ask for a password.
I executed "su", but it printed the same as login. "suid", what is this?
seffka_p is offline   Reply With Quote
Advert
Old 12-04-2014, 01:58 PM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
setuid bit, dust off your unix manual about file permissions .

Given the fact that you need to be root to actually set the setuid bit (obviously), catch-22: you're screwed. [And even before that, you also need to be on a FS which actually handles unix permissions, ie. not vfat, which rules out the userstore].

Last edited by NiLuJe; 12-04-2014 at 02:00 PM.
NiLuJe is offline   Reply With Quote
Old 12-04-2014, 03:22 PM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
On a complete (not an embedded) Linux system:
man suid

that is the man(ual) command to look up suid

Also recognized by web search engines, just search: man suid

as in:
http://man7.org/linux/man-pages/man1/man.1.html
knc1 is offline   Reply With Quote
Old 12-04-2014, 04:57 PM   #8
MaCXyLo
Junior Member
MaCXyLo began at the beginning.
 
Posts: 7
Karma: 14
Join Date: Dec 2014
Device: KPW2
Quote:
Originally Posted by seffka_p View Post
Hi guys!

Today my K got update to 5.6.1 (Yes, I know, I had to install OTA prevention, but I didn't) So, I lost some hacks [...]
Same problem here...
Hacked my device successfully (jailbreak, KUAL, USBNet...)
forgot to install OTA preventation - now my kpw2 runs on 5.6.1.

KUAL doesn't start anymore in my case.
try to start ;un , doesn't happen.

Anyway to make it undo? -,-
bite myself in the ass...

Don't want to screw the device up to soldering serial port.
MaCXyLo is offline   Reply With Quote
Old 12-04-2014, 09:49 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Your options are limited to:
  • pray to the god of your choice that you forgot you updated to (or originally installed, unlikely since it is new) JB>=1.13
  • serial port
  • pray to the god of your choice that someone pulls a new jailbreak exploit out of their hat
  • Find some way to get Amazon to replace your Kindle, hopefully the new one is still on the old firmware, and install the latest JB.
eschwartz is offline   Reply With Quote
Old 12-09-2014, 06:44 PM   #10
Case
Junior Member
Case began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2014
Device: Kindle PW2
Also was force-upgraded to 5.6.1, also have stuff only running as framework now.

I do however still have a working hacked su binary with suid flag set in:
Code:
/var/local/mkk/su
Managed to get my battery status script to work again by editing its menu.json and changing the launch action to start with
Code:
/var/local/mkk/su -c
This is overly hacky though, what am I missing for things to automatically run as root? I have a regular non-hacked /bin/su that is symlinked to busybox and asks for the root password. Should I switch that with the one in /var/local?
Case is offline   Reply With Quote
Old 12-09-2014, 06:50 PM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I believe KUAL now automatically elevates to root before running extensions (that was part and parcel of the JB=1.13 update).

Have you checked you are running the latest version of KUAL (2.5)?

Last edited by eschwartz; 12-09-2014 at 06:57 PM.
eschwartz is offline   Reply With Quote
Old 12-09-2014, 06:51 PM   #12
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Case: As @eschwartsz mentioned, upgrade to KUAL >= 2.5, it'll take care of everything.
NiLuJe is offline   Reply With Quote
Old 12-09-2014, 09:01 PM   #13
Case
Junior Member
Case began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2014
Device: Kindle PW2
Thank you for your help eschwartz and NiLuJe, that solved it.
Case is offline   Reply With Quote
Old 12-09-2014, 09:02 PM   #14
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Case View Post
Also was force-upgraded to 5.6.1, also have stuff only running as framework now.

I do however still have a working hacked su binary with suid flag set in:
Code:
/var/local/mkk/su
Managed to get my battery status script to work again by editing its menu.json and changing the launch action to start with
Code:
/var/local/mkk/su -c
This is overly hacky though, what am I missing for things to automatically run as root? I have a regular non-hacked /bin/su that is symlinked to busybox and asks for the root password. Should I switch that with the one in /var/local?
**NO**
The busybox and anything else in /bin will be replaced with the next Amazon upgrade ;
The things in /var/local belong to you, they will not be replaced.

Hackish as it may seem, leave the special su where it is and use a full path to it in any scripting - - that is much more likely to be a stable solution.

Last edited by knc1; 12-09-2014 at 09:05 PM.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The 3.4 Update and related troubles kiri87 Kindle Developer's Corner 5 10-25-2012 06:29 PM
some troubles with Calibre and DR Floeee Calibre 15 09-17-2009 07:25 AM
PDF troubles coldcell Workshop 5 01-30-2008 01:09 AM
Cybook Troubles imperceptible Bookeen 6 01-27-2008 04:32 PM


All times are GMT -4. The time now is 10:59 PM.


MobileRead.com is a privately owned, operated and funded community.