Grant execute to public?

  • Where's the GUI to grant the public role execute permissions on all my stored procs? I've a few dozen and I'd really rather not click on each SP twice in Public's Securables list

  • There isn't one to my knowledge. From the GUI you can either go into the properties of the role or the properties of the object.

    You sure you want to do that, however? Usually comes around to bite you in my experience...

  • aspnet user has to be able to execute SPs somehow...

  • Why not grant to the specific ASPNET user then? Or use impersonation in your application?

    I mean, do what you want, but it's usually a pretty bad security practice to go around granting execute on everything to everyone. Someone somehow gets an account on that sql server and you've already pre-approved them to do whatever they want...

  • I did, in fact just do that. ASPNET is exec'ing fine now. Public's still locked out.

  • I was actually having the opposite problem. I posted a script here:

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=359&messageid=372467

    The script is designed to deny public permissions, but by changing "deny" to "grant," you should be able to grant permissions to everything.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply