Re: What exactly can PUBLIC ROLE do in SqlServer?
From: Kalen Delaney (kalen_please_reply_on_public_newsgroups_delaney@compuserve.com)
Date: 03/30/03
- Next message: Jose Molina: "Re: System Administrator Implied Permissions"
- Previous message: Mary Chipman: "Re: Role activation"
- In reply to: kanthi: "Re: What exactly can PUBLIC ROLE do in SqlServer?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Kalen Delaney" <kalen_please_reply_on_public_newsgroups_delaney@compuserve.com> Date: Sun, 30 Mar 2003 10:52:03 -0800
The message you get when a non-sa runs sp_addlogin (error 15247) is not the
same permission violation error that you would get if you really didn't have
permissions. You can look at the text of sp_addlogin and see that this error
is actually generated within the sp_addlogin procedure itself. It is
actually NOT the same 'permission denied' message that indicates a true
permission violation. That is error 229.
So sp_helprotect does correctly tell you that public has permission to run
sp_addlogin, but there is something inside the procedure that keeps a
non-admin user from completing the procedure. There is no way to tell what
procedures would have this further kind of restriction INSIDE their code
without looking at the code every single procedure.
If you absolutely must know exactly what a public member can do in Master,
and you want to go beyond what sp_helprotect tells you, you'll have to run
tests of your own. Otherwise, I would just assume that public can read most
of the metadata in master, but can't change anything. Really, non-admins
should not be doing anything in master anyway.
HTH
-- Kalen Delaney SQL Server MVP www.SolidQualityLearning.com "kanthi" <kanthi_mathi@hotmail.com> wrote in message news:028001c2f69f$8888e0e0$a301280a@phx.gbl... > Thanks Kalen, > > sp_helprotect shows that PUBLIC has execute permission for > sp_addlogin. But, when PUBLIC user executes sp_addlogin, > it fails with 'Permission denied' as it doesn't have > insert privileges on syslogins table. So, even though > sp_helprotect shows that PUBLIC has execute privileges on > sp_addlogin, in reality, it doesn't seem to be the case. > > So, my aim is to find out what exactly a PUBLIC user can > do in Master database. > > Thanks for your help. > > >-----Original Message----- > >Can you elaborate on exactly what you did to cause > execution of the stored > >procedures in master to fail? > > > >The permissions that the PUBLIC role has are exactly what > you see when you > >run sp_helprotect. > > > >If someone in the public role (meaning anybody or > everybody) got an error > >trying to execute something basic like sp_help, my guess > is that you either > >accidentally recreated sp_help with a different owner, or > tried to have the > >user execute the code that makes up sp_help, instead of > directly executing > >sp_help. > > > >If you tell us what you did exactly, we can tell you why > you got the > >behavior you saw. > > > >-- > >Kalen Delaney > >SQL Server MVP > >www.SolidQualityLearning.com > > > > > >"Kanthi Mathi" <kanthi_mathi@hotmail.com> wrote in message > >news:006901c2f5ce$0347cb20$3401280a@phx.gbl... > >> Hi all, > >> > >> I need to know what exactly a PUBLIC ROLE is capable of > >> doing in Master database. I issued sp_helprotect and > >> gathered info about PUBLIC. Sp_helprotect does give the > >> list of SPs that PUBLIC can execute, but when I test > them, > >> they fail because PUBLIC doesn't have the required > >> permissions on their corresponding tables. > >> > >> > >> Does anybody have the list of activities that PUBLIC is > >> really capable of doing in Master database? > >> > >> I am looking for this info to define the security > >> standards for SqlServer in our organisation. > >> > >> Thanks a lot for all your help. > >> > > > > > >. > >
- Next message: Jose Molina: "Re: System Administrator Implied Permissions"
- Previous message: Mary Chipman: "Re: Role activation"
- In reply to: kanthi: "Re: What exactly can PUBLIC ROLE do in SqlServer?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|