Unable to use sudo in console

  • 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

First of all, try to use Java 8. Java 10 may not be 100% compatible with OH2.2

what are you trying to achieve?

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:

  1. Type in sudo nano /var/lib/openhab2/uuid and press enter

stuck after this

Thanks

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.

Got it…thanks for the info