FirebirdSQL logo

ChangeRunUser.sh Parameters

To run the script, use a command line similar to the following:

changeRunUser.sh <username> <groupname>

The script takes two parameters on the command line, both of which are optional as you will be prompted if both are omitted.If you only supply one parameter, it is assumed to be the username and you will be prompted for the groupname.

username

This parameter sets the username under which the Firebird server is to run.The supplied value is validated against entries in /etc/passwd.

groupname

This parameter sets the groupname under which the Firebird server is to run.The supplied value is validated against entries in /etc/group.

The following example shows the use of changeRunUser.sh to change the owning user and group to firebird.The firebird user and group is actually the default when Firebird is installed so there is no need for you to run the script unless you have changed these details already.

# cd /opt/firebird/bin
# ./changeRunUser.sh firebird firebird
Updating /opt/firebird
Updating startup script
Completed

If you are running Firebird 2.1 or higher, there is no longer a prompt if you run this script with no parameters.The script now defaults to firebird for the user and group if you do not supply any parameters.Running the script under 2.1 gives the following:

# cd /opt/firebird/bin
# ./changeRunUser.sh
Shutting down Firebird                                                done

Change Firebird install for /opt/firebird to uid=firebird gid=firebird
(User or group options can be changed by editing this script)

Press return to continue - or ^C to abort

Updating /etc file(s)
Updating /opt/firebird
Starting Firebird                                                     done
Completed.
Warning

When this script prompts you to "Press return to continue …​" any VNC sessions connected to the database server will have been killed.Please ensure that you have the server at a quiet period and not during normal running hours when you make this change.This affects Suse Linux Enterprise 10 but may affect other Linux distributions as well.

RestoreRootRunUser

Under Firebird 1.5 there are two versions of the restoreRootRunUser.sh script.The one prefixed 'SS' is for Super Server installations and the one prefixed 'CS' is for Classic Server installations.In Firebird 2 onwards, the script is simply restoreRootRunUser.sh.

Note

This script must be run as root.

This script simply restores the old style installation format whereby the Firebird Super Server runs as the root user and group.

docnext count = 3

Document history

The exact file history is recorded in the firebird-documentation git repository; see https://github.com/FirebirdSQL/firebird-documentation

Revision History

0.1

22 Nov 2004

ND

Created as a chapter in the Command Line Utilities manual.

1.0

19 Oct 2009

ND

Updated for Firebird 2, minor changes to punctuation and then converted to a stand alone manual.

1.1

05 Jan 2010

ND

Spelling correction.

1.2

27 Apr 2010

ND

When changing the DBA password, it is no longer the case that the startup script is also amended.Other changed for version 2.1 added.

1.3

20 Jun 2020

MR

Conversion to AsciiDoc, minor copy-editing

License notice

The contents of this Documentation are subject to the Public Documentation License Version 1.0 (the “License”); you may only use this Documentation if you comply with the terms of this License.Copies of the License are available at https://www.firebirdsql.org/pdfmanual/pdl.pdf (PDF) and https://www.firebirdsql.org/manual/pdl.html (HTML).

The Original Documentation is titled Firebird Shell Scripts.

The Initial Writer of the Original Documentation is: Norman Dunbar.

Copyright © 2004–2010.All Rights Reserved.Initial Writer contact: NormanDunbar at users dot sourceforge dot net.