Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 role on a domain account

Author  Topic 

vanbasten
Starting Member

7 Posts

Posted - 2012-07-03 : 16:35:34
Recently I have a db moved to a new server by attaching the mdf and ldf files. Then I setup a Windows Authenticated login using a Windows domain account on this new server. The only server role on this domain account is "public". And it has only "db_owner" role on db1.

For some reason, this domain account can access all the databases on this instance (not just db1) and it can even create new databases, just like as if it has the sysadmin role (it doesn't). Is there any way to check what is wrong with the role/permission on this domain account? This domain account is not a local admin I don't think.

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-03 : 16:47:47
quote:

This domain account is not a local admin I don't think.



You'll need to verify this.

Also, run this and it'll tell you what groups the user is a member of: EXEC master.dbo.xp_logininfo 'DomainName\UserName'

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

vanbasten
Starting Member

7 Posts

Posted - 2012-07-03 : 18:33:16
account name type privilege mapped login name permission path
-----------------------------------------------------------------------------------
COMPANY\account1 user admin COMPANY\account1 BUILTIN\Administrators

You are right. The permission path of the Domain\Username shows "BUILTIN\Administrators". However, I checked the members of Administrator and this domain account is not in there. I did copy this database from an old server (running SQL 2005) where this domain account was a local admin. After I attached this db to this new server (SQL 2008), is it possible that some permission information get carry over? Thanks.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-07-03 : 18:36:22
A restored database doesn't include instance level permissions, just database level permissions. Now a restored master database would include instance level permissions, however restoring master to another instance is very, very rare. Plus you'd be able to spot it in the server roles.

Do you see AD groups that have local admin? I suspect the user is in one of those groups.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -