1
00:00:00,630 --> 00:00:06,300
In a previous lecture in this course, I showed you how you can set up user based authentication so

2
00:00:06,300 --> 00:00:11,280
that the front end of your military installation is protected with a username and password.

3
00:00:11,790 --> 00:00:21,060
And this allows you to log in like this and add some level of protection to your note rate front end.

4
00:00:21,870 --> 00:00:29,760
Now it's also it's possible, of course, as with anything to do with passwords, to just forget your

5
00:00:29,760 --> 00:00:30,350
password.

6
00:00:30,360 --> 00:00:35,820
Like it's happened to me several times, and if you just can't remember what the password is, what

7
00:00:35,820 --> 00:00:39,090
you can do is to reset it on the inside.

8
00:00:39,480 --> 00:00:47,760
As long as you have access to your note read folder on your Raspberry Pi or whichever server your note

9
00:00:48,120 --> 00:00:54,690
installation lives on, then you'll be able to reset your password and to log in to your note.

10
00:00:54,690 --> 00:00:56,190
Great front end.

11
00:00:56,910 --> 00:01:01,350
You can find more information about what I'm about to show you here in the documentation.

12
00:01:01,670 --> 00:01:08,160
So this is where the original information lies in, and I'm going to demonstrate how to do it in this

13
00:01:08,160 --> 00:01:08,700
lecture.

14
00:01:09,330 --> 00:01:17,730
So first of all, of course, log on to your note, read server and go into the note red folder.

15
00:01:18,300 --> 00:01:23,760
And in here you will see the settings file settings.

16
00:01:24,010 --> 00:01:32,160
J.S. go inside that and then search for admin authentication.

17
00:01:32,460 --> 00:01:34,110
And that's what it looks like for me.

18
00:01:35,610 --> 00:01:36,060
All right.

19
00:01:36,210 --> 00:01:37,200
So down here.

20
00:01:39,540 --> 00:01:46,320
I've set up my administration authentication and I'm using the credentials type and you can see that

21
00:01:46,320 --> 00:01:49,010
I've got a single user with a username.

22
00:01:49,020 --> 00:01:56,910
Peter And instead of the password, the password of course is not stored in the clear, but the password

23
00:01:56,910 --> 00:02:00,870
field holds a hash of the actual password.

24
00:02:01,320 --> 00:02:06,930
So what you have to do if you want to reset this password is essentially to calculate the new hash and

25
00:02:06,930 --> 00:02:09,810
replace the old hash with the new hash.

26
00:02:10,920 --> 00:02:15,120
So let's pretend that I can't remember my password and therefore I need to reset it.

27
00:02:15,180 --> 00:02:24,300
The way to do it is to go into the documentation, go into the generating a password hash section,

28
00:02:24,300 --> 00:02:30,360
and here you'll see a command that allows you to create a new hash for a password that no trick can

29
00:02:30,360 --> 00:02:30,960
understand.

30
00:02:31,530 --> 00:02:33,990
So I'm just going to copy that and paste it in here.

31
00:02:36,940 --> 00:02:42,190
And now the the tour here is waiting for a new password for me to type in.

32
00:02:42,460 --> 00:02:49,660
So I'm going to type in my new password like this and hit enter.

33
00:02:49,660 --> 00:02:54,310
And here is the new hash going to copy this hash.

34
00:02:58,610 --> 00:03:01,670
And go into my settings.

35
00:03:02,920 --> 00:03:05,440
And in the password field.

36
00:03:06,370 --> 00:03:08,350
Just delete the old hash.

37
00:03:14,050 --> 00:03:16,540
And replace it with a new hash.

38
00:03:19,010 --> 00:03:19,520
Like that.

39
00:03:21,140 --> 00:03:23,030
Save the file and quit.

40
00:03:24,410 --> 00:03:29,030
And finally, to make this change effective, I need to.

41
00:03:31,050 --> 00:03:35,010
Stop the server and then start it again.

42
00:03:35,610 --> 00:03:39,060
Some restarting the node read service.

43
00:03:41,670 --> 00:03:43,620
Get a few moments to spin up.

44
00:03:45,630 --> 00:03:46,190
Okay.

45
00:03:47,210 --> 00:03:50,570
She got back into the front end of my note read installation.

46
00:03:50,570 --> 00:03:52,580
I'm going to refresh you, make sure it all works.

47
00:03:54,810 --> 00:03:55,270
Right.

48
00:03:55,270 --> 00:03:57,570
So I'm going to type in my old password first.

49
00:04:00,580 --> 00:04:02,610
It's my old password did not work.

50
00:04:02,620 --> 00:04:04,510
Here's my new password work.

51
00:04:04,900 --> 00:04:07,210
Just add it to a number in the end.

52
00:04:08,170 --> 00:04:09,820
So the new password now works.

53
00:04:09,820 --> 00:04:12,460
And I was able to use the.

54
00:04:13,750 --> 00:04:20,320
Password hash tool to create a new hash, replace the original with the new hash in the settings the

55
00:04:20,320 --> 00:04:29,890
case file, restart the node read server and am now able to get back into my node read frontend.
