Firebird Docset → Firebird Commandline Utilities → Assorted Firebird Scripts On Linux/Unix Systems → Changing SYSDBA's Password |
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. 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 is also updated with the new password.
The script must be run as the root user, and, when run, changeDBAPassword.sh will prompt you for the current SYSDBA password and then for a new password. Both of these will appear on the display so for enhanced security, don't allow anyone to look over your shoulder when you run the script.
After the script has been run, the file /opt/firebird/SYSDBA.password will contain the password in plain text, so make sure that this file is not readable by anyone except root.
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 #
Whenever you change the SYSDBA password using the GSEC utility, you should also change the startup script file as well. To ensure a complete update, always use this script when changing the SYSDBA user's password.
Firebird Docset → Firebird Commandline Utilities → Assorted Firebird Scripts On Linux/Unix Systems → Changing SYSDBA's Password |