]> git.evergreen-ils.org Git - Evergreen.git/blob - docs/modules/admin/pages/staff_from_command_line.adoc
docs: Angular Acq Sprint 0 Tools and Infrastructure
[Evergreen.git] / docs / modules / admin / pages / staff_from_command_line.adoc
1 = Managing Staff from the Command Line =
2
3 == Changing passwords ==
4
5 If you need to change a patron or staff account password without using the staff client, here is how you can reset it with SQL.
6
7 Connect to your Evergreen database using _psql_ or similar tool, and retrieve and verify your admin username:
8
9 [source, sql]
10 ------------------------------------------------------------------------------
11 psql -U <user-name> -h <hostname> -d <database>
12
13 SELECT id, usrname, passwd from actor.usr where usrname = 'admin';
14 ------------------------------------------------------------------------------
15
16 If you do not remember the username that you set, search for it in the _actor.usr_ table, and then reset the password.
17
18 [source, sql]
19 ------------------------------------------------------------------------------
20 UPDATE actor.usr SET passwd = <password> WHERE id=<id of row to be updated>;
21 ------------------------------------------------------------------------------
22
23 The new password will automatically be hashed.
24