Unix Technical Forum

Permissions on a View

This is a discussion on Permissions on a View within the Informix forums, part of the Database Server Software category; --> Here's a snippet from the Informix 10 Manual: "When you create a view, PUBLIC does not automatically receive any ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 11:23 AM
Chris S
 
Posts: n/a
Default Permissions on a View

Here's a snippet from the Informix 10 Manual: "When you create a view,
PUBLIC does not automatically receive any privileges for a view that
you create. Only you have access to table data through that view. Even
users who have privileges on the base table of the view do not
automatically receive privileges for the view."

Does this hold true for other DBA's on the same database? It seems as
this is the case through some testing I have done here but it seems odd
to me. If I do not explicity grant SELECT on my view to a DBA user,
then they cannot select from it.

Can anyone tell me if this is working as it's supposed to? It seems
strange to me that DBA's don't just get full permissions by default on
new views.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 11:23 AM
Chris S
 
Posts: n/a
Default Re: Permissions on a View

Chris S wrote:
> Here's a snippet from the Informix 10 Manual: "When you create a view,
> PUBLIC does not automatically receive any privileges for a view that
> you create. Only you have access to table data through that view. Even
> users who have privileges on the base table of the view do not
> automatically receive privileges for the view."
>
> Does this hold true for other DBA's on the same database? It seems as
> this is the case through some testing I have done here but it seems odd
> to me. If I do not explicity grant SELECT on my view to a DBA user,
> then they cannot select from it.
>
> Can anyone tell me if this is working as it's supposed to? It seems
> strange to me that DBA's don't just get full permissions by default on
> new views.


What I get is 272: No SELECT permission.

Here's a little more information that is probably very useful - all of
the views that I am having permission problems with are views against
remote tables.

--
Chris

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 11:23 AM
Superboer
 
Posts: n/a
Default Re: Permissions on a View

ifaikr if a user is dba then that user has full control;

> What I get is 272: No SELECT permission.
>
> Here's a little more information that is probably very useful - all of
> the views that I am having permission problems with are views against
> remote tables.


Question does that user have dba permissions on the remote site too??

if not then the error message is correct.

Superboer.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 11:23 AM
Chris S
 
Posts: n/a
Default Re: Permissions on a View


Superboer wrote:
> ifaikr if a user is dba then that user has full control;
>
> > What I get is 272: No SELECT permission.
> >
> > Here's a little more information that is probably very useful - all of
> > the views that I am having permission problems with are views against
> > remote tables.

>
> Question does that user have dba permissions on the remote site too??
>
> if not then the error message is correct.
>
> Superboer


Yes, the other account has DBA on both sides. If I explicitly grant
select on the view to the other account I can then use the view.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 11:23 AM
Superboer
 
Posts: n/a
Default Re: Permissions on a View

this sounds like a bug to me contact TS !!


Superboer.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 11:23 AM
SaltTan
 
Posts: n/a
Default Re: Permissions on a View

I think it's not a bug.

If dba doesn't have select permission for that remote table then dba
must not have permission for this view.
When you create a view against remote table do you want Informix to
check permissions for that remote table for all dba in database?

Superboer wrote:
> this sounds like a bug to me contact TS !!
>
>
> Superboer.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 11:23 AM
Chris S
 
Posts: n/a
Default Re: Permissions on a View

The DBA does have select permission on the remote table. If I query
that remote table directly, I can get data back just fine. I just
cannot query it through the view.

It sounds like permissions on a view to a remote table have to be
explicitly granted to ALL users of that view, even other DBA's, before
they can query through that view.

I do have a call open with Informix Support and will post back when
they give me an explanation. I'm not saying it's a bug, but I'm just
looking to understand "why" it behaves this way.

--
Chris


SaltTan wrote:
> I think it's not a bug.
>
> If dba doesn't have select permission for that remote table then dba
> must not have permission for this view.
> When you create a view against remote table do you want Informix to
> check permissions for that remote table for all dba in database?
>
> Superboer wrote:
> > this sounds like a bug to me contact TS !!
> >
> >
> > Superboer.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com