Solved

permissions of SQLServerMSSQLUser$ComputerName$MSSQLSERVER

Posted on 2010-09-13
9
1,941 Views
Last Modified: 2012-05-10
is there a tSQL code you could check what are the permissions bestowed to the above group.

thanks
0
Comment
Question by:anushahanna
  • 5
  • 4
9 Comments
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
What's that?
An AD group or AD user?
Wich SQL Server version are you using?
0
 
LVL 6

Author Comment

by:anushahanna
Comment Utility
0
 
LVL 6

Author Comment

by:anushahanna
Comment Utility
user group created by installation?
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
Now I see. Isn't really a user name but a variable :)
You have in that article what kind of permissions is needed in AD.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 6

Author Comment

by:anushahanna
Comment Utility
OK.

But those are only Default permissions, right? it might have changed over the years, and how do you check where its levels are now?

Why do you say it is a variable? Even it is a variable, it works with xp_logininfo, which is supposed to return information about Windows users and Windows groups.
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
As far I know about Microsoft articles they are always up to date.
Variable it's the computer name.  :)

Anyway, that user is really a group that is created locally in the server and not in AD.
0
 
LVL 6

Author Comment

by:anushahanna
Comment Utility
Thanks VMontalvao. My variable is COMNTR333.

I confirmed the following is in syslogins.
'COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER'

then i created an user in tblTracker databases
use tblTracker
create user [COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER] for login [COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER]

then i tried to see its current permissions

USE tblTracker  
EXECUTE AS USER = 'COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER';
SELECT * FROM fn_my_permissions(NULL, NULL)
REVERT;

but it gives error:
Cannot execute as the database principal because the principal "COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER" does not exist, this type of principal cannot be impersonated, or you do not have permission.

if we cannot impersonate, is there any options to check its permissions?

thanks
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
Comment Utility
Isn't a user but a group. Go to Manage User options in Computer Management and you'll see that group there. Should be only a member in that group. That member should be the user that owns SQL Server service.
0
 
LVL 6

Author Comment

by:anushahanna
Comment Utility
Thanks VMontalvao.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now