ChangeDBAPassword
The changeDBAPassword.sh
script allows the password for the SYSDBA user to be changed and various startup scripts etc to have their ownership changed accordingly.The script is run in non-interactive mode as part of the installation process to create an initial randomly generated password which is stored in the /opt/firebird/SYSDBA.password
file.
Up until version 2.1 of Firebird, the password is subsequently used in the startup script /etc/rc.d/init.d/firebird
, which also has a symlink set up to point to /etc/init.d/firebird
.
The security database (/opt/firebird/security.fdb
or /opt/firebird/security2.fdb
— depending on your Firebird version) is also updated with the new password.
Caution
|
The script must be run as the root user, and when run, After the script has been run, the file |
The following is an example of running the script to change the SYSDBA password from 'masterkey' to 'biroguin' which, being a made up word, should be less crackable or guessable.
# cd /opt/firebird/bin # ./changeDBAPassword.sh Please enter current password for SYSDBA user : masterkey Please enter new password for SYSDBA user : biroguin GSEC> GSEC> Running ed to modify /etc/init.d/firebird
Caution
|
Whenever you change the SYSDBA password using the This doesn’t apply when using Firebird 2.1 and above as the startup script no longer requires the SYSDBA password. In the example above, the last line of output will not be displayed on systems running Firebird 2.1 and above as the startup scripts are no longer changed when the SYSDBA password is modified. |