Re: Default permissions on new database
- From: "Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Jan 2008 08:12:11 -0600
All sysadmin role members are automatically "dbo" in all databases with no explicit mapping. Sysadmin role members basically impersonate "dbo" in all databases. However, the user
that creates the database is the one-and-only database owner and is actually mapped to the "dbo" user.
I recommend that you change the database owner after creating databases and blogged this last week: http://weblogs.sqlteam.com/dang/archive/2008/01/13/Database-Owner-Troubles.aspx
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Flubster" <Flubster@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:9DDE4864-947A-43E5-A3B2-CCCE800C32DD@xxxxxxxxxxxxxxxx
I notice when I create a new database within my SQL Server that the
permissions for the new database automatically adds a user (Who is configured
as sysadmin) with dbo permissions to this database.
Both within the login properties of the select user (User mapping) is listed
as Default Schema, dbo and within the permissions of the database listed as
user with connect permissions.
I have other users configured as sysadmin and they do not get this rights
(They are not expliticly listed within user mapping with dbo or permissions
as user within the database).
I've inherited this system and wonder if the user has somehow changed the
new database procedure so it changes the default permissions of new databases.
Any way to check what he's done, I can see no differences between him and
the other sysadmins but he's definatly specifically listed as a dbo on all
new tables.
Although I don't mind him having access, he's a sysadmin after all, I'd like
to make it uniform thoughout the system, i.e. using the inhertited
permissions rather than specific permissions that seem to be created when the
new database is created.
Any ideas?
Flubster
.
- Prev by Date: Re: Record level security?
- Next by Date: RE: Urgent problem about SQL Server
- Previous by thread: Re: Urgent problem about SQL Server
- Next by thread: RE: Integrated Security in the DMZ
- Index(es):
Relevant Pages
|