Setting the ISC_USER and ISC_PASSWORD environment variables

variables

An environment variable is a named object that contains information used by one or more applications. They are global to their specific operating systems. The Firebird server recognises and uses certain environment variables configured in Windows, Linux and other Unix systems.

The ISC_USER and ISC_PASSWORD environment variables in Firebird are designed to give SYSDBA access to the database from the command-line utilities and client applications to anyone who has access to a host machine.

Caution: When running command-line utilities like isql, gbak, gstat and gfix, Firebird will search to see if the ISC_USER and ISC_PASSWORD environment variables are set. If you do not provide a user name and password while connecting to a database locally, Firebird will let you log in provided it finds these variables.

For security reasons, it is not advised to specify the SYSDBA user name and password using these two environment variables especially on an insecure computer.

The ISC_USER and ISC_PASSWORD environment variables may be set in order to start isql locally. To set the environment variables:

C:\> set ISC_USER=sysdba
C:\> set ISC_PASSWORD=secret
C:\> isql my_employee

SQL>
cosmos> export ISC_USER=sysdba
cosmos> export ISC_PASSWORD=secret
cosmos> /opt/firebird/bin/isql my_employee

SQL>