home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!utcsri!torn!cunews!nrcnet0!netfs!manitou.cse.dnd.ca!pburry
- From: pburry@manitou.cse.dnd.ca (Paul Burry)
- Subject: SYBASE: stored procedures and permissions
- Message-ID: <1992Aug14.012728.16969@manitou.cse.dnd.ca>
- Organization: Canadian System Security Centre
- Date: Fri, 14 Aug 92 01:27:28 GMT
- Lines: 28
-
-
- I am having a problem with stored procedures and permissions. I am using
- SYBASE 4.8 under SunOS 4.1.1.
-
- If as the dbo I define
-
- create proc a as return
- go
- create proc b as exec a
- go
- grant execute on b to public
- go
-
- then when as myself I try to use 'b', I get an error stating that I do not
- have execute permission on 'a'.
-
- Now, according to the documentation permissions are only checked when object
- ownership changes. This means that when I execute 'b', Sybase will verify
- that I have EXECUTE permission on 'b'. Since it was granted to the group
- public, I am permitted to execute 'b'. But, why does Sybase check my
- permission to execute 'a'; the dbo owns both 'a', and 'b'.
-
- Any help or explanation would be appreeeciated.
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Paul Burry
- Voice: (613)-991-7325 Internet: pburry@cse.dnd.ca
- Fax: (613)-991-7323 UUCP: ..!{uunet,cunews}!cse.dnd.ca!pburry
-