Author Topic: Change Local Authentication Password  (Read 7847 times)

Offline knewmania

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: +0/-0
Change Local Authentication Password
« on: April 01, 2012, 11:16:10 am »
I have local authentication enabled on my Vera2 (1.5.346 ), and would like to change the password. I cant seem to find where this is done. When I use the Account>Change Password option, this seems to change my MiOS password and not the local unit password.

Any help would be appreciated.
Vera 2. UI 1.5.622 / Vera 3. UI 1.7.760

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Change Local Authentication Password
« Reply #1 on: April 01, 2012, 11:28:57 am »
The mios password and the local attenuation password are the same. If you change the mios password, the authentication password should change to that.

- Garrett

Offline knewmania

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: +0/-0
Re: Change Local Authentication Password
« Reply #2 on: April 01, 2012, 01:36:28 pm »
I am seeing something different.

Here is the scenario:

I was originally using the MiOS password (just an example) Passw0rd.

I changed my MiOS password to (just an example) Passw0rd1.

Now I can login to MiOS with Passw0rd1, but when I try to connect locally and use Passw0rd1 I am re-prompted. Local authentication will only accept the old password (Passw0rd).

I have cleared my Cache and attempted using multiple browsers and still see this issue.

Vera 2. UI 1.5.622 / Vera 3. UI 1.7.760

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Change Local Authentication Password
« Reply #3 on: April 01, 2012, 01:49:42 pm »
Could be that the password is not synching and only changes when disabling and re-enabling of local authentication. So it could very well be that it only writes the password once to the lighttpd file.

- Garrett

Offline knewmania

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: +0/-0
Re: Change Local Authentication Password
« Reply #4 on: April 01, 2012, 02:05:39 pm »
I have tried disabling and then re-enabling 'Do you want to secure this Vera?', and the local password is not updated. I am guessing that I might be able to create another new account with a password I want and then copy that new hashed password into my account within lighttpd.users file?

Seems like a bug to me.
Vera 2. UI 1.5.622 / Vera 3. UI 1.7.760

Offline knewmania

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: +0/-0
Re: Change Local Authentication Password
« Reply #5 on: April 03, 2012, 10:01:57 am »
I  tried to create another account with the password I want for the original account and copy the hashed password into the lighttpd.users file. This didn't work. So it seems that there is no way to change the local authentication password once it is set.
Vera 2. UI 1.5.622 / Vera 3. UI 1.7.760

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Change Local Authentication Password
« Reply #6 on: April 03, 2012, 05:17:59 pm »
Try this:

1. Log into your vera as root

2. type the following into the command line:
Code: [Select]
echo -n "test1234:HomeControl:4321" | md5sum
Change test1234 to the username you want and 4321 to the password you want

3. Take the output of the string it generates ignoring the - at the end e.g.
Code: [Select]
5c6a284a4ee4f5a738115d0d920a6c74  -
5c6a284a4ee4f5a738115d0d920a6c74

4. open up the lighttpd.users file
Code: [Select]
vi /etc/lighttpd.users

5. Add the following onto a new line of the lighttpd.users file:
Code: [Select]
test1234:HomeControl:5c6a284a4ee4f5a738115d0d920a6c74Change test1234 to the username you used the second step and change the last section to the generated value from the 3 step.

6. Save the changes and you should be able to log into the vera with the new credentials

- Garrett

Offline knewmania

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: +0/-0
Re: Change Local Authentication Password
« Reply #7 on: April 03, 2012, 06:11:33 pm »
You are a Wizard! Thank you for the instructions. This worked perfectly.

You think I should open a bug report?
Vera 2. UI 1.5.622 / Vera 3. UI 1.7.760

Offline oTi@

  • Community Beta
  • Master Member
  • ******
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: Change Local Authentication Password
« Reply #8 on: April 04, 2012, 10:30:26 am »
@mcvflorin, @mcvmirela

Is this behaving as intended, or should the OP file a bug? (I almost did yesterday.)
Dezwaved at the moment...

guest12514

  • Guest
Re: Change Local Authentication Password
« Reply #9 on: April 04, 2012, 11:41:36 am »
@mcvflorin, @mcvmirela

Is this behaving as intended, or should the OP file a bug? (I almost did yesterday.)

oTI, before we are certain this is a bug, we need to investigate and reproduce it. That's why I asked knewmania to give me access to his unit.

Offline knewmania

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: +0/-0
Re: Change Local Authentication Password
« Reply #10 on: April 04, 2012, 12:00:38 pm »
Access granted and unit number sent.
Vera 2. UI 1.5.622 / Vera 3. UI 1.7.760