v18 LibreELEC Testbuilds for RaspberryPi (Kodi 18.0)
(2017-12-12, 03:20)Milhouse Wrote:
(2017-12-12, 00:59)MikeKL Wrote: I have not attempted to delete shadow files yet via samba and Windows PC to regain access and controil via ssh (both files then reboot?)

Yes both files (shadow- is a backup of the original shadow file prior to any modification, but there's no benefit to be had from keeping it).
(2017-12-12, 00:59)MikeKL Wrote: and not sure what to look for in log files for clues on why I get access denied when trying to login via ssh
I can see sshd is running, and I see two failed password attempts in the latest journalctl:
Code:
Dec 11 22:23:02 LibreELEC sshd[1072]: Failed password for root from 192.168.1.35 port 54113 ssh2
Dec 11 22:23:17 LibreELEC sshd[1072]: Failed password for root from 192.168.1.35 port 54113 ssh2
so it looks like you are entering an incorrect password. Have you tried entering both the old ("libreelec") and new passwords?

I don't know what ssh client you are using, but I'm using PuTTY (Windows app) and when I enter an incorrect password it shows "Permission denied", so it's entirely possible your "Access denied" error is actually an incorrect password, possibly because the shadow file contains garbage, or it's changed back to the default.

You could try viewing the shadow file - it should look similar to the following (which is the default - your "root" line will be different if you've changed the password):
Code:
systemd-network:*:::::::
root:$6$sY7aGbTxcU2ZeqDN$Rlb40DOjy8JbyvH052FGYMTcWWRFZaPvvdFiqFeYgGBklDGxivnDBGeW2fia94RzyYZbyXpBLwltV/JaDc7Op/:::::::
nobody:*:::::::
dbus:*:::::::
system:*:::::::
avahi:*:::::::

Try deleting the shadow file - it will be recreated with the default "libreelec" password.

I have just submitted another PR so that LibreELEC will always overwrite the shadow file with default settings if it appears that the shadow file contains garbage (ie. is missing the entry for root), and this will be in #1212. This should fix your issue, restoring the default password, assuming your shadow file has become corrupted after the power loss.      
 I am using putty on Win10 pc and see "Access denied" message when tryin original/modified passwords..
checked and String is different in shadow and shadow- files.
Will wait for #1212 to see if the change in build fixes ssh password issue. (rather than taking easy delete shadow files)

Thanks Blush

-----Edited/Updated to add text currently contained in my shadow & shadow- files respectively------
Code:
shadow

systemd-network:*:::::::
root:$6$z8jJHXgpm5BRy9RU$5E4O3J7J8Ov/sQm57uye5fDe9LbbC3Sja65nAdntjHTZwLliMy2jfoZ3swp7Wig.aASshhYhSsIaz/Ui.YcBW1:17509::::::
nobody:*:::::::
dbus:*:::::::
system:*:::::::
avahi:*:::::::

shadow-

systemd-network:*:::::::
root:$6$AVREFJHZGs0IhP2h$.8oO5xuhJQohEoV9FhfV3wZCONoDqvnAml4NV7f02edBmV2EbMzwsRnhXLyLo7O6lUN7aBo/oy84zm3A5XCEq/:::::::
nobody:*:::::::
dbus:*:::::::
system:*:::::::
avahi:*:::::::
RPi4, (LibreELEC 11.0) hdmi0 -> Philips 55PUS7304 4K TV, hdmi1 -> Onkyo TX-SR608 AV Receiver


Messages In This Thread
WD MyCloud - by crisp waffles - 2017-09-06, 03:11
No 3D Playback since Version - by Mike74 - 2017-10-09, 19:25
Migrating from RPi2 to RPi1 - by RappaSan - 2017-11-10, 14:45
RE: Migrating from RPi2 to RPi1 - by Milhouse - 2017-11-10, 21:06
RE: Migrating from RPi2 to RPi1 - by RappaSan - 2017-11-11, 09:17
RE: LibreELEC Testbuilds for RaspberryPi (Kodi 18.0) - by MikeKL - 2017-12-12, 08:56
Resolution broken after 0415 - by lozbrown85 - 2018-04-20, 11:48
popt 1.16 - by n0n4m3 - 2018-06-29, 00:28
RE: popt 1.16 - by Milhouse - 2018-06-29, 06:39
A plugin to be resurrected - by ArminiusTux - 2018-10-22, 22:02
RE: A plugin to be resurrected - by Milhouse - 2018-10-23, 02:46
Logout Mark Read Team Forum Stats Members Help
LibreELEC Testbuilds for RaspberryPi (Kodi 18.0)24