|
|
|
Firebird & C++ & Linux
|
|||
|---|---|---|---|
|
#18+
Hi, Iam trying to connect from Linux to my firebird database. That's easier than i expected, but there is one problem. When i try to specify username (using DPB) There is code: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. Everything is allright - connection is succeseful, but Firebird ignores my specified username and password - i can enter anything that i want in place of username and password and connection is succeseful. But when i try to make some query (like SELECT or UPDATE) i receive error code: no permission for read/select access to TABLE TT_CURR_RATE What should i do to get it working properly. P.S. When i log in my Linux box as root then all querys are succeseful. This problem is when i log in as normal user (not root). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2003, 10:25 |
|
||
|
Firebird & C++ & Linux
|
|||
|---|---|---|---|
|
#18+
Root is equivalent to SYSDBA. You should check your user's rights on objects which you use. You may change database and database objects owher. For this you shuld connect as SYSDBA or root and execute two commands: UPDATE RDB$RELATIONS SET RDB$OWNER_NAME='YOUR_USER_NAME'; UPDATE RDB$PROCEDURES SET RDB$OWNER_NAME='YOUR_USER_NAME'; Ufter that you should backup database under SYSDBA or root an restore it under your user. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2003, 10:55 |
|
||
|
Firebird & C++ & Linux
|
|||
|---|---|---|---|
|
#18+
When i connect from windows client (4 example IB Expert) I can do select and update querys. I am using ROLES to grant specific access for specific user groups. All i want is to make little tool which connects to database on the same Linux machine where the database is. I have tried to use uid and gid fields in isc4.gdb file for Linux authentification - but they seems have no sense at all! I dont want to use my root account for this tool everytime - because that is not secure! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2003, 11:38 |
|
||
|
Firebird & C++ & Linux
|
|||
|---|---|---|---|
|
#18+
It is a low-level programming and only few people use it. You can look into sources of Delphi components and try to make connection similary or you can use SYSDBA instead of root, or, as I sad earlier, you can create a special user (owner of database and objects) and work with him. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 09.09.2003, 12:01 |
|
||
|
|

start [/forum/topic.php?fid=40&tid=1580007]: |
0ms |
get settings: |
5ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
136ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
22ms |
get tp. blocked users: |
1ms |
| others: | 201ms |
| total: | 388ms |

| 0 / 0 |
