SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 role on a domain account
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vanbasten
Starting Member

Netherlands
7 Posts

Posted - 07/03/2012 :  16:35:34  Show Profile  Reply with Quote
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

USA
35007 Posts

Posted - 07/03/2012 :  16:47:47  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

Netherlands
7 Posts

Posted - 07/03/2012 :  18:33:16  Show Profile  Reply with Quote
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

USA
35007 Posts

Posted - 07/03/2012 :  18:36:22  Show Profile  Visit tkizer's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000