I can not log into the openhab2 console, changed password in users.properties

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage (Window 10 x64 machine,Intel i3/8GB/1TeraByte
    • OS: what OS is used and which version
    • Java Runtime Environment: which java platform is used and what version (java zulu 8.28.0.1)
    • openHAB version: (openhab-2.5.0-SNAPSHOT)
  • Issue of the topic: please be detailed explaining your issue
  • Please post configurations (if applicable):
    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

I had everything working so well, I decided to change the default login password.

stopped openhab2 from running with net stop “openhab2” command

server stopped…

So i went to C:\openHAB2\userdata\etc\users.properties and deleted the encrypted password after the openhab =

i typed in my password and left the “,” on the end of the line

saved the file (i used notepad to edit the file)

restarted the server with net start “openhab2”

server started…

tried to login to the console and it will not take my password, it will not take the default password

tried resetting the password back to habopen

still will not let me in to the console

Here is my users.properties file :

################################################################################

Licensed to the Apache Software Foundation (ASF) under one or more

contributor license agreements. See the NOTICE file distributed with

this work for additional information regarding copyright ownership.

The ASF licenses this file to You under the Apache License, Version 2.0

(the “License”); you may not use this file except in compliance with

the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an “AS IS” BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

################################################################################

This file contains the users, groups, and roles.

Each line has to be of the format:

USER=PASSWORD,ROLE1,ROLE2,…

USER=PASSWORD,g:GROUP,…

g:GROUP=ROLE1,ROLE2,…

All users, groups, and roles entered in this file are available after Karaf startup

and modifiable via the JAAS command group. These users reside in a JAAS domain

with the name “karaf”.

openhab = {CRYPT}4F61A0FD056BC0FD8231899EC4D9F9CA06AF0DEC895B2A3B0773F6FBC1C99776{CRYPT},
g:admingroup = group,admin,manager,viewer,systembundles

This is what i did to change it:

################################################################################

Licensed to the Apache Software Foundation (ASF) under one or more

contributor license agreements. See the NOTICE file distributed with

this work for additional information regarding copyright ownership.

The ASF licenses this file to You under the Apache License, Version 2.0

(the “License”); you may not use this file except in compliance with

the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an “AS IS” BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

################################################################################

This file contains the users, groups, and roles.

Each line has to be of the format:

USER=PASSWORD,ROLE1,ROLE2,…

USER=PASSWORD,g:GROUP,…

g:GROUP=ROLE1,ROLE2,…

All users, groups, and roles entered in this file are available after Karaf startup

and modifiable via the JAAS command group. These users reside in a JAAS domain

with the name “karaf”.

openhab = habopen,
g:admingroup = group,admin,manager,viewer,systembundles

please tell me what i am doing wrong here

Found this…just need to search on Karaf console

this solved my problem…i was missing the following string after mypassword …“g:admingroup”

THIS has been Solved