Re: To deteremine NT logins + Sql Logins with sa + dbo + prviliges

From: SQL Guy (SQLGuy@EarthLink.Net)
Date: 07/02/02


From: "SQL Guy" <SQLGuy@EarthLink.Net>
Date: Tue, 2 Jul 2002 00:44:02 -0700


Yes, you can do it directly from SQL:

Select Domain+'\'+Name From OpenRowset(NetGroupGetMembers,
'BUILTIN\Administrators')

Use it recursively as needed. Look at xp_logininfo for details.

Gary
MCDBA, MCSA, MCSD, MCSE+I

"FR" <floydrev@hotmail.com> wrote in message
news:uGxR3VGICHA.2024@tkmsftngp11...
> I have an NT login that I guess is part of some NT group thats a valid
login
> on SQL Server. I definitely do not see his login individually.
> He currently has sa priviliges which could be part of
Builtin\Administrators
> group. But when i look under the Admin group, dont see his name but could
be
> part of the Domain admin group .
>
> Is there a way i can drill down to the lowest level to find out each and
> every NT member of the builtin\Administrators group or for that matther
any
> NT group although i may see further groups under that.
>
> Please advice.
>
>



Relevant Pages

  • Re: Permission question - another one
    ... If I add an Sql Login it does add the TRAVAC\ in front of the names, ... seems to be users that were setup to use SQL Server Authentication. ... RAPTOR is the Server that has SQL Server running on it. ... > " I could think I am taking permissions away from someone, ...
    (microsoft.public.sqlserver.programming)
  • Re: Renamed Windows login not found in SQL Server 2000
    ... It's almost like SQL tuck some knowledge away in an area ... of memory that only gets released on Windows stop. ... > I am running SQL Server 2000 SP2 with Windows ... > login gets corrupted) I am unable to add the new login to ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Server on XP Home Network
    ... The sa account is the system administrator "God" account witihin SQL ... This account is a SQL-Server login. ... You might be able to use Enterprise Manager to go in and create a new SQL ... Select the "SQL Server Authentication" ...
    (microsoft.public.sqlserver.setup)
  • RE: Getting Challenged when using SQL connection on .aspx page
    ... What would happen if i removed integrated security=sspi from the connection ... Just want the login token to be passed, ... Have webpage with following connection in the ... I have account to the database on the SQL server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Logging in irrespective of database access
    ... My problem is that in the Login section of Enterprise Manger I have to ... like there used to be in SQL 6.5. ... What's the point in having the Database Access section if the System Admin ... SQL Server MVP ...
    (microsoft.public.sqlserver.server)