Re: Public Group Security Issue

From: Jasper Smith (jasper_smith9@hotmail.com)
Date: 11/09/02


From: "Jasper Smith" <jasper_smith9@hotmail.com>
Date: Sat, 9 Nov 2002 14:48:36 -0000


SQL uses the most restrictive security setting to determine the
effective security of a user. All databases users are members of
the public fixed database role and cannot be removed from it.
So if I run through a quick example for a new blank database
(where I am the database owner and a sysadmin)

I add a server login "test" with access to the database via the public role

The database contains a table dbo.tableb which has had no permissions
applied to it.

user "test" tries to run a select * from tableb and gets permission denied

I grant select on tableb to "test" and user "test" can now select from table

I now deny select on tableb to public and user "test" gets permission denied

Owner Object Grantee Grantor ProtectType Action Column
------ ------------ ------------ ------- ----------- ------ ----------------

-- 
dbo    tableb       public       dbo     Deny        Select (All+New)
dbo    tableb       test         dbo     Grant       Select (All+New)
The effective permission of user "test" is the most restrictive of the
permissions,
thus even though user test is explicitly granted select on tableb, due to
their
membership of the public role their effective permission is deny select
I hope this is clear :-)
-- 
HTH
Jasper Smith (SQL Server MVP)
Check out the PASS Community Summit - Seattle, the largest and only user
event entirely dedicated to SQL Server, November 19-22.
http://www.sqlpass.org/events/seattle/index.cfm
"Robert Keck" <robertk@fprodsa.com> wrote in message
news:S%Xy9.1467$Vh3.979891368@newssvr11.news.prodigy.com...
> What am I missing???
>
> I'm new to SQL server and am in the process of doing some compatibility
> testing
>
> I've a table on a SQL2000 server that is joined to an AD domain (using
> Windows Only security)
>
> I've added domain users and domain groups to the SQL database and assigned
> appopriate permissions to the table.
>
> However, the only security changes that matter are table permission change
s
> to the Public group i.e. if I deny ALL permissions to the Public group (at
> the table level), and give ANY/ALL permissions to one of the other groups
> and/or users, an appropriate user (on another machine), via an MS Access
adp
> file, can not access or see the table.  Basically, the SQL server seems to
> only be concerned with permissions of the Public group and totally
> disregards everything else.
>
> Thanks in advance
>
>


Relevant Pages

  • Re: Logging in irrespective of database access
    ... Sysadmin role members have full permissions, ... SQL Server MVP ... > My problem is that in the Login section of Enterprise Manger I have to> specify that each login has the System Admin ticked under Server Roles> because in SQL 2000 there doesn't seem to a Grant All permissions option> like there used to be in SQL 6.5. ... > What's the point in having the Database Access section if the System Admin> under Server Roles allows you to get into anything?. ...
    (microsoft.public.sqlserver.programming)
  • Re: Logging in irrespective of database access
    ... Sysadmin role members have full permissions, ... SQL Server MVP ... > My problem is that in the Login section of Enterprise Manger I have to> specify that each login has the System Admin ticked under Server Roles> because in SQL 2000 there doesn't seem to a Grant All permissions option> like there used to be in SQL 6.5. ... > What's the point in having the Database Access section if the System Admin> under Server Roles allows you to get into anything?. ...
    (microsoft.public.sqlserver.programming)
  • Re: Logging in irrespective of database access
    ... Sysadmin role members have full permissions, ... SQL Server MVP ... > My problem is that in the Login section of Enterprise Manger I have to> specify that each login has the System Admin ticked under Server Roles> because in SQL 2000 there doesn't seem to a Grant All permissions option> like there used to be in SQL 6.5. ... > What's the point in having the Database Access section if the System Admin> under Server Roles allows you to get into anything?. ...
    (microsoft.public.sqlserver.server)
  • Re: Logging in irrespective of database access
    ... Sysadmin role members have full permissions, ... SQL Server MVP ... > My problem is that in the Login section of Enterprise Manger I have to> specify that each login has the System Admin ticked under Server Roles> because in SQL 2000 there doesn't seem to a Grant All permissions option> like there used to be in SQL 6.5. ... > What's the point in having the Database Access section if the System Admin> under Server Roles allows you to get into anything?. ...
    (microsoft.public.sqlserver.server)
  • Re: Creating security for MS Access application
    ... I wanted to create user ids and grant permissions based on user ids. ... You've not properly secured your database if that's the case. ... of User Level Security before mucking around with it too much more. ... with instructions on how to properly secure a database without the Security Wizard: ...
    (microsoft.public.access.security)