![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This is not a bug. It is expected in Stored Procedures. And BTW the same behaviour exists in SQL Server too. Can this be disabled. I am not aware of any mechanism. I am sure there must be some way, otherwise you can always code it in the stored procedure. "Andrew Rowe" <andrew.rowe (AT) manufacturing (DOT) demon.co.uk> wrote in message news:PTiMe.10592$JB4.1747 (AT) newsfe6-win (DOT) ntli.net... Hi All, I'm finding that stored procedures seem to bypass table-level privileges and allow data to be selected from tables that the user has no select permission on. Is this a bug? This has surprised me given the discussion entitled "Using Stored Procedures to Control Access to Data" in the "Informix Guide to Database Design and Implementation" (4364.pdf). This section discusses creating a DBA procedure to read from a table that the user does not have select permission on. Why put this section in the manual if any procedure can do this? OS: UnixWare 7.1.1 IDS: 7.31.UD8 Regards, Andrew PS Also tried this on 9.40.TC1E1 on Windows XP with the same result |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
You might be missing http://publib.boulder.ibm.com/infoce...doc/udr198.htm esp. the phrase "The user who executes the UDR runs with the privileges of the owner of the UDR." HTH, Andreas |
![]() |
| Thread Tools | |
| Display Modes | |
| |