如何使用特定用户执行xp_cmdshell? [英] how can I use specific user to execute xp_cmdshell ?
本文介绍了如何使用特定用户执行xp_cmdshell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用特定用户执行xp_cmdshell?
我正在尝试使用以下代码,但它不起作用。
使用主人
go
执行登录='DomainName \ user'
请帮助。
how can I use specific user to execute xp_cmdshell ?
I am trying to use following code but its not working.
Use master
go
Execute As Login = 'DomainName\user'
Please help.
推荐答案
授予对表,视图,表值函数,存储过程,扩展存储过程,标量函数,聚合函数,服务的权限队列或同义词,使用 GRANT对象权限(Transact-SQL) [ ^ ]
要启用非管理员帐户以运行xp_cmdshell
命令,请按照说明操作:如何启用非sysadmin帐户在SQL Server中执行xp_cmdshell扩展存储过程2000 [ ^ ]
To grants permissions on a table, view, table-valued function, stored procedure, extended stored procedure, scalar function, aggregate function, service queue, or synonym, use GRANT Object Permissions (Transact-SQL)[^]
To enable non-admin account to runxp_cmdshell
command, please, follow the instructions: How to enable non-sysadmin accounts to execute the "xp_cmdshell" extended stored procedure in SQL Server 2000[^]
>
这篇关于如何使用特定用户执行xp_cmdshell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文