If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > ODBC readonly

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-02, 04:19
wocky23 wocky23 is offline
Registered User
 
Join Date: Oct 2002
Location: Germany
Posts: 6
ODBC readonly

Hello,

According to security issues I don't want to use ODBC in read/write mode. Is there any posibility out there to configure the Client 2.70 TC3 NT /W2k for read only mode?

thanks

wocky
Reply With Quote
  #2 (permalink)  
Old 10-10-02, 11:18
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
There is no flag or env var to be set in order to have a read-only odbc connection.

You could create an odbc user with only read-only permissions...

f.ex.

user odbc.

1. Make sure the user 'public' doesn't have RESOURCE or DBA or CONNECT permission...
in dbaccess:
unload to revoke_permissions.sql DELIMITER ';'
SELECT "REVOKE ALL ON " || tabname || " FROM public"
from systables
where tabname > 99
and tabtype = 'T'

2. Execute the revoke_permissions.sql

3 Set permissions for user 'odbc'

in dbaccess:
unload to set_permissions.sql DELIMITER ';'
SELECT "GRANT SELECT ON " || tabname || " TO odbc"
from systables
where tabname > 99
and tabtype = 'T'

4. execute the set_permissions.sql

Let every odbc user connect to the database with that user.
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 10-10-02, 11:30
wocky23 wocky23 is offline
Registered User
 
Join Date: Oct 2002
Location: Germany
Posts: 6
thank you,

but more than 80 databases and many different user - permissions makes it very hard to realize your sugestion.

wocky
Reply With Quote
  #4 (permalink)  
Old 10-11-02, 08:04
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Correct, but it works...
__________________
rws
Reply With Quote
  #5 (permalink)  
Old 10-11-02, 10:31
wocky23 wocky23 is offline
Registered User
 
Join Date: Oct 2002
Location: Germany
Posts: 6
th@ks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On