Restoring the Password of Dr.Web Enterprise Security Suite Administrator

If the administrative password for access to Dr.Web Server is lost, you can view or change it by direct access to the Server DB:

a)For an embedded DB, to view and change administrative password, use the drwidbsh utility, which is included in the Server distribution kit (see H7.2. Administrating Utility of the Embedded Database).

b)For an external DB, use corresponding sql client.

info

Parameters of administrative accounts are stored in the admins table.

Example of using the drwidbsh utility:

1.Run the drwidbsh3 utility and specify the path to the DB file:

For the embedded DB under Linux OS:

/opt/drwcs/bin/drwidbsh3 /var/opt/drwcs/database.sqlite

For the embedded DB under Windows OS:

"C:\Program Files\DrWeb Server\bin\drwidbsh3" "C:\Program Files\DrWeb Server\var\database.sqlite"

info

If you use embedded database of an old IntDB format, e.g., in case of the Server upgrade from the 6 version, when default database name is dbinternal.dbs, and database management utility is drwidbsh.

2.To view all data from the admins table, run the following command:

select * from admins;

3.To view logins and passwords of all administrative accounts, run the following command:

select login,password from admins;

4.If only one account with the admin name exists and it has the root password, you will get the following result:

sshot-faq-admin-password-sqlite

5.To change the password, use the update command. In the following example, the command changes the password of the admin account to qwerty:

update admins set password='qwerty' where login='admin';

6.To exit the drwidbsh utility, run the following command:

.exit

Description of the drwidbsh utility is given in the appendix H7.2. Administrating Utility of the Embedded Database.