On 10/09/2024 17:13, Ismael L. Donis Garcia wrote:
> I have tried to install Firebird 5.0.1 on Devuan 5 but so far I have not
> been able to get it to work properly.
> It installs correctly and allows adding users, but it gives an error
> when trying to create, open and restore databases.
> idonis@pc-ismael:~$ <mailto:
idonis@pc-ismael:~$> /opt/firebird/bin/isql
> Use CONNECT or CREATE DATABASE to specify a database
> SQL> CREATE DATABASE '/home/idonis/Documentos/ccs/test.fdb' page_size 8192
> CON> user 'SYSDBA' password 'masterke';
> Statement failed, SQLSTATE = HY000
> operating system directive access failed
> -Permission denied
> -/tmp/firebird/
> SQL>
You're creating a database in embedded mode, which means it's using the
permissions of your user account. The error says you can't access
/tmp/firebird, which is probably owned by user firebird and group
firebird. As such, the error indicates you're not a member of the group
firebird. Add yourself to that group.
> The most intriguing thing is that if I kill the firebird process which
> runs as the firebird user and run the service from a console with root
> privileges then it does allow working in firebird.
> But the user that runs it is root and not firebird.
The problem of the screenshot (which BTW, really should have been posted
as text), means you are trying to connect through the Firebird server,
and the user running Firebird (user firebird) does not have permission
to read the files in your home directory (which is a good thing!).
If you want to access files through the server, you should put the files
elsewhere outside your home directory, with permissions granted to user
firebird and group firebird. Or you need to ensure that the group
firebird has sufficient permission to access files in your home
directory (which personally, I wouldn't recommend).
Mark
--
Mark Rotteveel