RE: What are the permissions required at OS level to run xp_logini

From: Craig (CraigNicholas_at_online.nospam)
Date: 11/28/05


Date: Mon, 28 Nov 2005 02:53:06 -0800

Hi,
I've just got notice of your replies; thanks.

This does not seem to be a problem with role permissions within SQL Server.
It appears to be related to the level of privilege for the current user's
Windows account.

This is the KB article that refers to error 8198 state 24 and it's meaning ;
http://support.microsoft.com/?kbid=834124

I have granted execute on xp_logininfo to Public.
The Windows account is a member of Users, Domain Users and Remote Desktop
Users.

If I create a SQL login for an account with this group membership profile
and attempt to run
exec master..xp_logininfo '[domain\user]', 'all'
I get the error.

SQL Server is running on Windows 2003 Server.
PDC is running on another instance of Windows 2003 Server.

-- 
Regards,
Craig
"Andy Davis" wrote:
> Hi,
> have you tried as i suggest ?
> 
> 
> Regards
> -- 
> Andy Davis
> Activecrypt Team
> --------------------------------------------
> SQL  Server Encryption Software
> http://www.activecrypt.com
>  
> 
> 
> "Andy Davis" wrote:
> 
> > Hi,
> > its enough for users to have execute permission for SP, it should work.
> > About Error 8918 , its here:
> > Could not obtain information about Windows NT group/user '%ls'
> > 
> > Please refer this script , it will give information for user with role and 
> > rights
> > http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=10504
> > 
> > Regards
> > -- 
> > Andy Davis
> > Active Crypt Team
> > --------------------------------------------SQL  Server Encryption 
> > Decryption Software
> > http://www.activecrypt.com
> >  
> > 
> > 
> > "Craig" wrote:
> > 
> > > Hi
> > > I am trying to obtain all permission paths for a SQL Login (Windows domain 
> > > account) using xp_logininfo.
> > > 
> > > The user running the query has been granted execute on the procedure but 
> > > gets error 8198 with state 24, which I have determined to mean 'Access 
> > > Denied'.
> > > 
> > > What I would like to know is what level of privilege or permission(s) does 
> > > this user 
> > > require at the operating system level to be able to get a result?
> > > 
> > > The online books don't mention this in the permissions section.
> > > 
> > > Thanks.
> > > 
> > > -- 
> > > Regards,
> > > Craig


Relevant Pages

  • Re: Setting perm. on stored procedures using windows auth.
    ... windows account and are in the local windows administrators group, ... I support the Professional Association of SQL Server and it community ... I added that 1 user to a database role and I set execute ... > permissions for some stored procedures in my database. ...
    (microsoft.public.sqlserver.security)
  • Re: Login with no Fixed Server Role and DB Role can stop SQL Agent Service?
    ... Yup - somehow the user has windows security rights to control services - we ... This posting is provided "AS IS" with no warranties, and confers no rights. ... >> a Window 2000 Login with Domain User default permissions, ... Forget about SQL Server for the moment. ...
    (microsoft.public.sqlserver.security)
  • Re: Setting perm. on stored procedures using windows auth.
    ... Thank you Wayne. ... > windows account and are in the local windows administrators group, ... > Wayne Snyder, MCDBA, SQL Server MVP ... >> permissions for some stored procedures in my database. ...
    (microsoft.public.sqlserver.security)
  • Re: simple security question (need refresher)
    ... If IIS is configured for anonymous access and you connect to SQL Server ... using Windows authentication, the IIS anonymous account ... this account or roles that this account is a member of. ... Permissions are required only on objects directly accessed by the ...
    (microsoft.public.sqlserver.security)
  • Re: User setup problem.
    ... login permissions for SQL Server. ... have access to SQL Server and the database through their ... windows group role membership which has the permissions.. ...
    (microsoft.public.sqlserver.security)