Re: xp_cmdshell
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 03/31/04
- Next message: Victor Kozel: "Re: Query tuning"
- Previous message: Victor Kozel: "Re: Query tuning"
- In reply to: Noorali Issani: "xp_cmdshell"
- Next in thread: Noorali Issani: "Re: xp_cmdshell"
- Reply: Noorali Issani: "Re: xp_cmdshell"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 31 Mar 2004 14:14:50 +0530
Hi,
When xp_cmdshell is invoked by a user who is a member of the sysadmin fixed
server role, xp_cmdshell will be executed under the security context in
which the SQL Server service is running. When the user is not a member of
the sysadmin group, xp_cmdshell will impersonate the SQL Server Agent proxy
account, which is specified using xp_sqlagent_proxy_account. If the proxy
account is not available, xp_cmdshell will fail.
How to set the proxy account:
1. Open enterprise manager and select management options
2. Right click abouve the sql Agent and select properties
3. Select the "job system" option
4. Set the "Non sysadmin job step proxy account
5. There you have give the valid OS level user with previlage.
Thanks
Hari
MCDBA
"Noorali Issani" <naissani@softhome.net> wrote in message
news:uvXz#IvFEHA.4008@TK2MSFTNGP10.phx.gbl...
> I have a user and I want to to give persmission of that user to execute
only
> this XP_CMDSHELL procedure nothing else. Any idea ?
>
> Thanks
> NOOR
>
>
>
>
>
>
>
- Next message: Victor Kozel: "Re: Query tuning"
- Previous message: Victor Kozel: "Re: Query tuning"
- In reply to: Noorali Issani: "xp_cmdshell"
- Next in thread: Noorali Issani: "Re: xp_cmdshell"
- Reply: Noorali Issani: "Re: xp_cmdshell"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|