kinterbasdb error connection
Christian Heimes
lists at cheimes.de
Tue Dec 7 10:55:47 EST 2010
Am 07.12.2010 16:35, schrieb Ale Ghelfi:
> (i'm under Ubuntu 10.10 amd64 and python 2.6 and kinterbasdb 3.2 )
> I try to connect my database of firebird 2.5 by kinterbasdb.
> But python return this error :
>
> >>> c =
> kinterbasdb.connect(dsn="/media/VINACCIA.FDB",user="user",password="password",charset="UTF-8")
> Traceback (most recent call last):
> File "<pyshell#22>", line 1, in <module>
> c =
> kinterbasdb.connect(dsn="/media/VINACCIA.FDB",user="user",password="password",charset="UTF-8")
> File "/usr/lib/pymodules/python2.6/kinterbasdb/__init__.py", line
> 435, in connect
> return Connection(*args, **keywords_args)
> File "/usr/lib/pymodules/python2.6/kinterbasdb/__init__.py", line
> 612, in __init__
> b.dsn, b.dpb, b.dialect, timeout
> OperationalError: (-902, 'isc_attach_database: \n I/O error during
> "open" operation for file "/media/VINACCIA.FDB"\n Error while trying to
> open file\n Permission denied')
>
> By terminal of Ubuntu this is the permission of database:
> $ls -l /media/VINACCIA.FDB
> -rw-r--r-- 1 grappale grappale 1720320 2010-12-06 17:33 /media/VINACCIA.FDB
>
> Where am i wrong? Please. Thank you!
Are you using classic mode or super mode? I have no experience with
classic mode but for super mode, the firebird user or group needs
permission to enter the directory (rx for / and /media) and to alter the
file (rw for media/VINACCIA.FDB). I suggest that you change the
permission to 664 and the group of the file to firebird.
Christian
More information about the Python-list
mailing list