home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / sybase / 757 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.7 KB

  1. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usc!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!transfer.stratus.com!dwetzel.mis.stratus.com!user
  2. From: Dave_Wetzel@vos.stratus.com (David Wetzel)
  3. Newsgroups: comp.databases.sybase
  4. Subject: Re: Problem with 4.0.1 user Permissions, SGI
  5. Message-ID: <Dave_Wetzel-270193114907@dwetzel.mis.stratus.com>
  6. Date: 27 Jan 93 16:50:23 GMT
  7. References: <1993Jan27.220429.110@iwsd01.itwol.bhp.com.au>
  8. Followup-To: comp.databases.sybase
  9. Organization: Stratus Computer
  10. Lines: 44
  11. NNTP-Posting-Host: dwetzel.mis.stratus.com
  12.  
  13. In article <1993Jan27.220429.110@iwsd01.itwol.bhp.com.au>,
  14. phil@eedwsa.itwol.bhp.com.au (Phil McMillan) wrote:
  15.  
  16. > when I type (as "sa" user)
  17. >     revoke all from user
  18. > it doesnt change the permissions, ie the "user" can still insert.
  19. > However, when I type (as "sa")
  20. >     revoke all on table from user
  21. > The changes take effect. ie can no longer insert.
  22.  
  23. This is pretty easy.  The grant/revoke command not only works for
  24. permissions on objects it also manages permissions on commands (like create
  25. table, create default, etc).  So if the server sees "revoke all from user"
  26. with no object refered to it will assume that you're talking about revoking
  27. commands.
  28.  
  29. The way to test it is this:
  30.  
  31.    grant create proc to user
  32.    go
  33.    grant select on table to user
  34.    go
  35.    revoke all from user
  36.    go
  37.    sp_helprotect user
  38.    go
  39.  
  40. This will show the user still has access to select from the table, but no
  41. longer has create proc access.  Next do:
  42.  
  43.    revoke all on table to user
  44.    go
  45.    sp_helprotect user
  46.    go
  47.  
  48. Now the user should have also lost access to select from table.
  49.  
  50. Thanks,
  51. Dave_Wetzel@vos.stratus.com
  52.