Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PUBLC role access in SQL2k 1

Status
Not open for further replies.

j2willi4

MIS
Sep 19, 2006
24
0
0
US
Hello!

I am looking for a detailed explanation of the PUBLIC role within SQL server 2000.

Is it possible to have a PUBLIC role within a DB in SQL server, provide access to the users in that DB to another DB on that server?

Do any of the system tables or stored procedures the PUBLIC role has access to give those users any ability to view User DB data.

Thanks for any help you all can provide!
 
Public Role

The public role is a special database role to which every database
user belongs. The public role contain default access permissions
for any user who can access the database. This database role cannot
be dropped.

As a memeber of the Public role you do not have any access to user data.
 
Thanks for the quick reply...

"The public role contain default access permissions
for any user who can access the database."

It's those default access permissions i am really trying to document. Any help on that?
 
I'm not sure I could find what you are looking for but try this link. It should help.


Also this query will show you if the public role has any permissions right now. You should get back a 0.
Anything > than 0 means it has permissions some place.


select count(*) as PublicPermissionCount
from sysprotects P inner join sysusers U on P.Uid = U.UID
inner join sysobjects O on P.ID=O.ID
where P.uid=0 and o.Type<>'S'
and o.Name not like 'sys%'
and O.Name not like 'sync%'
 
Thanks ptheriault!

Anyone else have any additional insight?
 
I did find this for you.
The public role has select only permissions in every database on the following tables & views.
syscolumns syscomments sysconstraints sysdepends sysfilegroups sysfiles sysforeignkeys sysfulltextcatalogs
sysfulltextnotify sysindexkeys sysindexes sysmemebers
sysobjects syspermissions sysprojects sysreferences
syssegemtns systypes sysusers
 
Thanks again... how did you come up with this list? did you find it online, or run a query?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top