Subject | Re: [firebird-support] linux, firebird embedded and $FIREBIRD_TMP |
---|---|
Author | Daniel Weuthen |
Post date | 2009-09-29T13:07:08Z |
> are you trying to use the same embedded server installation for multipleI have one directory /opt/appname/fbembed with the folowing content:
> users where each user is connecting to their own separate database?
> OR are you trying to have each user use embedded to connect to the same
> database?
firebird.conf
firebird.log
firebird.msg
libfbclient.so.2.5.0
libfbembed.so
libfbembed.so.2.5.0
security2.fdb
The firebird.conf contains only:
RootDirectory = /opt/appname/fbembed
The application itself uses the embedded firebird to create a new
subdirectory in the users home home directory which contains a firebird
database and some more files. So it is always one user accessing the
database in his own home directory.
The problem is, that the first time a users runs the app, firebird
creates a /tmp/firebird folder which is only writeable by the user. So
the second user gets a permission denied error.
To get around that, I tried to export the env variable FIREBIRD_TMP with
$HOME/.appname/fbtmp as value. But that seems to be ignored becaus I
can see from a strace output that /tmp/firebird still beeing tried to
open, which obviously fails.
I know that firebird-classic or -superserver makes everything easier.
But it makes one important thing not easier: shipping our app to Linux
end users in the desktop market.
--
regards
Daniel Weuthen