01-23-2014, 11:09 PM | #1 |
Member
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
|
sshd will not start in usbnetwork mode
I recently started trying to use usbnetwork again. (I have to reinstall the install.bin file for it periodically, because if I accidentally take the Kindle off airplane mode then a firmware update usually happens, and that undoes usbnetwork.) After reinstalling, the usbnetwork bit worked fine; however, sshd did not start. Accessing it via telnet, I found that attempting to manually start sshd yields "/mnt/us/usbnet/empty must be owned by root and not group- or world-writable".
/mnt/us/usbnet/empty, of course, exists, but is set mode 777. chmod will not work on it, because the filesystem is fat32. /mnt/us is some kind of odd bind mount of /mnt/base-us, but in the latter, umask is set to 022, and so group and world cannot write anywhere. I can't find a way to make the bind mount (fuse.fsp, whatever that is) do the same thing. How should this be fixed? How was it ever working in the first place? Did something change? |
01-23-2014, 11:39 PM | #2 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Dunno about that, but have you tried the BackDoorLock hack or An easier way to disable auto-updates?
|
Advert | |
|
01-24-2014, 04:25 AM | #3 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@alethiophile: I should have fixed that a good while ago, which version of USBnet are you using?
|
01-24-2014, 11:34 AM | #4 |
Member
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
|
Uh...'the one I downloaded when I got this Kindle', I think. The file is 'update_usbnet_0.6.N_install.bin'.
And thanks for the pointers to disabling auto-updates. I'll look into that once I get sshd fixed. |
01-24-2014, 02:34 PM | #5 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@alethiophile: That is terribly old, which explains why it's not working .
|
Advert | |
|
01-24-2014, 06:44 PM | #6 |
Member
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
|
Okay, having installed the newest version SSH now works.
It seems to still start the telnetd, even though both USE_WIFI and USE_OPENSSH are true. How do you forestall that? |
01-24-2014, 07:19 PM | #7 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@alethiophile: You don't . If it really bothers you, comment the call in the usbnetwork script.
|
01-25-2014, 01:04 AM | #8 |
Member
Posts: 13
Karma: 13156
Join Date: Feb 2011
Device: Kindle Paperwhite
|
Okay. (Does the telnetd not listen on wifi, then? It seems quite the hole otherwise.)
|
01-25-2014, 08:21 AM | #9 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
lsof | grep tel on your machine? What did it say about telnet sockets? Did you try to connect via telnet over wifi? What happened? If you did connect over wifi, did telnetd ask you for a password? This additional information would help us understand the problem you are seeing as a "hole". Here is an example of the lsof output, filtered by grep, (for sshd, not telnet, and on a non-kindle machine, but the listing format will be the same): Code:
sshd 1304 root 3u IPv4 9587 0t0 TCP *:ssh (LISTEN) sshd 1304 root 4u IPv6 9589 0t0 TCP *:ssh (LISTEN) If you find telnet listening on the address (or all addresses) of the Wifi interface, then check your firewall incoming (state=new) rules for the Telnet port on that Wifi interface. Since it does the program no good to listen, if packets can't get through your firewall. Last edited by knc1; 01-25-2014 at 08:33 AM. |
|
01-25-2014, 10:36 AM | #10 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@alethiophile: The telnet port is behind the default firewall over WiFi .
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to start Calibre on Windows in debug mode | hakan42 | Development | 9 | 04-10-2024 05:34 PM |
0.9.7: Anomaly viewer, start viewer in full screen mode | DrChiper | Calibre | 2 | 11-23-2012 06:33 AM |
Start usbNetwork with launchpad? | giorgio130 | Kindle Developer's Corner | 5 | 12-03-2011 10:19 AM |
iLiad Semi-Standalone sshd? | grayfox | iRex Developer's Corner | 9 | 02-09-2008 02:50 PM |
iLiad starting sshd over wireless? | thetechnobear | iRex Developer's Corner | 5 | 11-28-2007 01:49 PM |