Re: Controlling create & drop proc, view privilege

From: Uri Dimant (urid_at_iscar.co.il)
Date: 10/28/04

  • Next message: Stevo: "Ownership Chains and Linked Servers"
    Date: Thu, 28 Oct 2004 09:00:55 +0200
    
    

    Mani
    You can EXECUTION permission on the stored procedure for the user
    Also ,you can remove him/her from sysadmin fixed server role but he/she
    should be member db_owner fixed database and must qualified User.sp

    "Mani" <Mani@discussions.microsoft.com> wrote in message
    news:0C3FBF63-843E-465E-98C0-4BE9152BF08F@microsoft.com...
    > Hi,
    >
    > Is there a way to allow a user, who has access to a db say "DevDB" as
    > db_datareader, to only create & drop stored procs and views in DevDB. What
    > extra permissions does the user need ?
    >
    > I tried playing with the "grant create proc to user" command. But it lets
    > the user create procs with him as owner. In the current case, the
    application
    > needs all objects to be owned by dbo, so the user needs to be able to run
    > "create proc dbo.tempProc as ..."
    >
    > In case there is a solution to the above, we might fall into the next
    trap.
    > since the user can create procedures with dbo as the owner, if the SP has
    a
    > drop table command, that would execute in the owners context and hence
    would
    > drop the table. Is that right ? I guess the question is when an SP is
    > executed does it use the permissions of the owner of the SP or the user
    > executing the SP
    >
    > --
    > Mani


  • Next message: Stevo: "Ownership Chains and Linked Servers"

    Relevant Pages

    • Re: Applescript vulnerability
      ... That's not really the relevant file: you have to go down to the ... with root permissions. ... In this particular case the owner is root. ... to allow arbitrary code execution. ...
      (comp.sys.mac.system)
    • Re: truncate a table via Stored Procedure
      ... "TRUNCATE TABLE permissions default to the table owner, ... sysadmin fixed server role, and the db_owner and db_ddladmin fixed database ... SQL Server MVP ...
      (microsoft.public.sqlserver.security)
    • Re: How to best protect against Spyware and Rookits
      ... first created account is an admin account. ... Users should manually change these settings and 99% of them can't do it:( ... disable execution permissions from folder with write permissions and vice versa. ...
      (microsoft.public.win32.programmer.kernel)
    • Re: Application of security to procs called from other procs
      ... with permissions allowed to EXECUTE 'uspRateBookingInsert'. ... Current security set up is using Windows authentication. ... users seem to be able to run a proc that they shouldn't be able to. ... security applies as it should (no unauthorised execution). ...
      (microsoft.public.sqlserver.security)
    • Re: Refusing all permissions
      ... why does Execution go into SecurityPermission rather than get its ... permissions don't warrant a permission, ... Ok, now that we have a clean slate, grant me Execution permission ... Assembly declarative requests could be used for either one of the ...
      (microsoft.public.dotnet.security)