![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||||
| ||||||
|
|
Hi, I had just installed Informix Advanced Server version 10.0 for Windows and was checking out the security features. I created two operating system users, say A and B, gave both GRANT CONNECT and GRANT RESOURCE permissions from the informix DBA user. Now, I could access the entire database, including both A and B's tables by logging in as either of the users. |
|
REVOKE SELECT ON TABLE T FROM B. This gave an error saying no record in ISAM and Unable to revoke permissions. Correct B probably didn't have a specific select priviledge on table B |
|
GRANT SELECT ON TABLE T TO B. |
|
already access A's tables. So I did a REVOKE SELECT ON TABLE T FROM B. Next, I actually logged out and logged back in as B and still, inexplicably enough, I was able to see A's tables easily enough. |
|
explanations would be most welcome as I have been struggling to get this working for sometime now. Also any pointers to the relation of Informix's users to the operating system level users would be welcome. |
|
Regards, Anupam |
#3
| |||
| |||
|
#4
| ||||||||
| ||||||||
|
|
I had just installed Informix Advanced Server version 10.0 for Windows and was checking out the security features. I created two operating system users, say A and B, gave both GRANT CONNECT and GRANT RESOURCE permissions from the informix DBA user. |
|
Now, I could access the entire database, including both A and B's tables by logging in as either of the users. |
|
I tried connecting as A from dbaccess and doing a REVOKE SELECT ON TABLE T FROM B. This gave an error saying no record in ISAM and Unable to revoke permissions. |
|
It however allowed me to do a GRANT SELECT ON TABLE T TO B. |
|
This did not change a thing since B could already access A's tables. So I did a REVOKE SELECT ON TABLE T FROM B. |
|
Next, I actually logged out and logged back in as B and still, inexplicably enough, I was able to see A's tables easily enough. |
|
Any explanations would be most welcome as I have been struggling to get this working for sometime now. |
|
Also any pointers to the relation of Informix's users to the operating system level users would be welcome. |
#5
| |||
| |||
|
|
Thanks for the great pointers. Sorry I'm a bit of a newbie and hopefully my questions were not too basic. I did try reading up and googling but could not find much. I have one more question . Is it at all possible to create two different tables with the same name in the same database but under two different users? sending to informix-list |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
have you revoked from "public"? anupam.mukherjee (AT) gmail (DOT) com wrote: Hi, I had just installed Informix Advanced Server version 10.0 for Windows and was checking out the security features. I created two operating system users, say A and B, gave both GRANT CONNECT and GRANT RESOURCE permissions from the informix DBA user. Now, I could access the entire database, including both A and B's tables by logging in as either of the users. this would be expected as you have probably not revoke select from public I tried connecting as A from dbaccess and doing a REVOKE SELECT ON TABLE T FROM B. This gave an error saying no record in ISAM and Unable to revoke permissions. Correct B probably didn't have a specific select priviledge on table B that could be revoked It however allowed me to do a GRANT SELECT ON TABLE T TO B. OK was this on the database that A created? I bet after you did this you could then do the revoke you tried above as there would now be |
| This did not change a thing since B could already access A's tables. So I did a REVOKE SELECT ON TABLE T FROM B. Next, I actually logged out and logged back in as B and still, inexplicably enough, I was able to see A's tables easily enough. Yip you still haven't revoked from public so you can still get access Any explanations would be most welcome as I have been struggling to get this working for sometime now. Also any pointers to the relation of Informix's users to the operating system level users would be welcome. i am pretty sure there is some stuff on GRANT and REVOKE in the manuals might be worth a quick look! I downloaded their pdfs which were really good about the database level |
|
Regards, Anupam |
#8
| |||
| |||
|
|
From: anupam.mukherjee (AT) gmail (DOT) com Reply-To: anupam.mukherjee (AT) gmail (DOT) com To: informix-list (AT) iiug (DOT) org Subject: Re: Relation of OS user to Informix database user Date: 24 Aug 2005 23:22:39 -0700 Thanks for the great pointers. Sorry I'm a bit of a newbie and hopefully my questions were not too basic. I did try reading up and googling but could not find much. I have one more question . Is it at all possible to create two different tables with the same name in the same database but under two different users? sending to informix-list |
#9
| |||
| |||
|
|
It however allowed me to do a GRANT SELECT ON TABLE T TO B. Possibly - but did it actually add anything to the systabauth table? If you read the GRANT manual pages carefully, there appears to be a loophole such that a GRANT statement might execute 'OK' without granting the permissions. |
#10
| |||
| |||
|
|
Is it at all possible to create two different tables with the same name in the same database but under two different users? |
![]() |
| Thread Tools | |
| Display Modes | |
| |