mcosta
(Mario Costa)
May 20, 2018, 3:28am
1
Platform information:
Hardware: PC
OS: Windows 10
Java Runtime Environment: 10.0.1
Issue of the topic: sudo password not working
I’m running client form a Window 10 PC. When I try to do a sudo and enter password I get this:
C:>C:\openHAB2\runtime\bin\client.bat
Logging in as openhab
Password:
__ _____ ____
____ ____ ___ ____ / / / / | / __ )
/ __ / __ / _ / __ / // / /| | / __ |
/ / / / // / __/ / / / __ / ___ |/ / / /
_/ ./_ / / / / / / // | /_____/
/_/ 2.2.0
Release Build
Hit ‘’ for a list of available commands
and ‘[cmd] --help’ for help on a specific command.
Hit ‘’ or type ‘system:shutdown’ or ‘logout’ to shutdown openHAB.
openhab> sudo
Password:
Error executing command: login failed
openhab>
Not sure what to use as password.
Thanks
Dim
(Angelos)
May 20, 2018, 4:59am
2
mcosta:
Java Runtime Environment: 10.0.1
First of all, try to use Java 8. Java 10 may not be 100% compatible with OH2.2
mcosta:
openhab> sudo
There is no such thing as sudo on a Windows machine.
what are you trying to achieve?
mcosta
(Mario Costa)
May 20, 2018, 12:55pm
3
Java 8 didn’t help.
While in openhab shell, sudo appears to work since it responds with a password request.
I just started using Openhab. Installation was very straight foward.
I’m trying to get the uuid so I can setup the cloud connector. Following recomended instructions:
Type in sudo nano /var/lib/openhab2/uuid and press enter
stuck after this
Thanks
rlkoshak
(Rich Koshak)
May 20, 2018, 1:38pm
4
Java 10 will definitely not work with OH 2.2.
@mcosta , you are running in Windows. Unfortunately somehow some Linux specific instructions snuck into the Cloud Connector README. On a manual install of OH like what is required for Windows, the filler paths are different.
https://docs.openhab.org/installation/windows.html#file-locations
So the uuid file path is C:\openHAB2\userdata\uuid.
There is no need to access the Karaf Console. The uuud and secret are just files under userdata.
mcosta
(Mario Costa)
May 20, 2018, 1:53pm
5
Got it…thanks for the info