home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / 6104 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!utcsri!torn!cunews!nrcnet0!netfs!manitou.cse.dnd.ca!pburry
  3. From: pburry@manitou.cse.dnd.ca (Paul Burry)
  4. Subject: SYBASE: stored procedures and permissions
  5. Message-ID: <1992Aug14.012728.16969@manitou.cse.dnd.ca>
  6. Organization: Canadian System Security Centre
  7. Date: Fri, 14 Aug 92 01:27:28 GMT
  8. Lines: 28
  9.  
  10.  
  11. I am having a problem with stored procedures and permissions.  I am using
  12. SYBASE 4.8 under SunOS 4.1.1.
  13.  
  14. If as the dbo I define
  15.  
  16.     create proc a as return 
  17.     go
  18.     create proc b as exec a
  19.     go
  20.     grant execute on b to public
  21.     go
  22.  
  23. then when as myself I try to use 'b', I get an error stating that I do not
  24. have execute permission on 'a'.
  25.  
  26. Now, according to the documentation permissions are only checked when object
  27. ownership changes.  This means that when I execute 'b', Sybase will verify
  28. that I have EXECUTE permission on 'b'.  Since it was granted to the group
  29. public, I am permitted to execute 'b'.  But, why does Sybase check my 
  30. permission to execute 'a'; the dbo owns both 'a', and 'b'.  
  31.  
  32. Any help or explanation would be appreeeciated.
  33. -- 
  34. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  35. Paul Burry            
  36. Voice: (613)-991-7325        Internet: pburry@cse.dnd.ca
  37. Fax:   (613)-991-7323        UUCP:      ..!{uunet,cunews}!cse.dnd.ca!pburry
  38.