How to fix Firebird permissions after fresh install on your Mac OS

Let’s say you, just like me, have a fresh install of firebird on your mac. Probably you are not able to run a simple command such as creating a database. In order to fix this here’s what you can.

Please note that this is a solution for dev environments:

$ ls -la

total 5576
drwxrwxrwx 26 firebird firebird 832 24 Ago 16:07 .
drwxr-xr-x 6 firebird firebird 192 5 Fev 2018 ..
-rw-r--r-- 1 firebird firebird 457 5 Fev 2018 Description.plist
drwxr-xr-x 2 firebird firebird 64 5 Fev 2018 English.lproj
-rw-r--r-- 1 firebird firebird 1103 5 Fev 2018 Info.plist
-rw-r--r-- 1 firebird firebird 24301 5 Fev 2018 License.txt
-rw-r--r-- 1 firebird firebird 1193 5 Fev 2018 Readme.txt
-rw-r--r-- 1 firebird firebird 0 5 Fev 2018 SuperServer
drwxr-xr-x 7 firebird firebird 224 5 Fev 2018 UDF
drwxr-xr-x 15 firebird firebird 480 5 Fev 2018 bin
-rw-r--r-- 1 firebird firebird 747 5 Fev 2018 cs.org.firebird.gds.plist
-rw-r--r-- 1 firebird firebird 887 24 Ago 16:07 databases.conf
drwxr-xr-x 53 firebird firebird 1696 5 Fev 2018 doc
drwxr-xr-x 14 firebird firebird 448 5 Fev 2018 examples
-rw-rw---- 1 root firebird 0 24 Ago 14:15 fb_guard
-rw-r--r-- 1 firebird firebird 6687 5 Fev 2018 fbtrace.conf
-rw-r--r-- 1 firebird firebird 31370 5 Fev 2018 firebird.conf
-rw-r--r-- 1 root firebird 194 24 Ago 14:15 firebird.log
-rw-r--r-- 1 firebird firebird 149196 5 Fev 2018 firebird.msg
drwxr-xr-x 3 firebird firebird 96 5 Fev 2018 help
drwxr-xr-x 4 firebird firebird 128 5 Fev 2018 intl
drwxr-xr-x 3 firebird firebird 96 5 Fev 2018 misc
-rw-r--r-- 1 firebird firebird 420 5 Fev 2018 org.firebird.gds.plist
drwxr-xr-x 12 firebird firebird 384 5 Fev 2018 plugins
-rw-r--r-- 1 firebird firebird 126 5 Fev 2018 plugins.conf
-rw-rw---- 1 firebird firebird 1703936 24 Ago 16:40 security3.fdb



# this two commands will fix this
$ cd /Library/Frameworks/Firebird.framework/Resources
$ chmod 777 .

If, after this, you still have permissions issues when connecting to a database, then check your db permissions and if necessary run a

$ chmod 777 path/to/your/db.fdb

 

Leave a Reply

Close Menu