Re: "Access denied" with xp_cmdshell (!)
- From: "Mark J. McGinty" <mmcginty@xxxxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 17:29:58 -0700
"Vycka" <vyciunas@xxxxxx> wrote in message
news:uMKcLj0xGHA.4732@xxxxxxxxxxxxxxxxxxxxxxx
But problem is that I have tried to give for that account full control
seperately. I mean I added the permission entry "DOMAIN\SQLUser - Full
control" to NTFS security and also to sharing security settings.
Still waiting for help...
Try running the SET command under xp_cmdshell to dump the envioronment of
the impersonation context that XP is using (to verify that it is the context
you're expecting.)
Also, is the Access Denied error being returned by the command shell, by
CACLS or by SQL Server?
-Mark
Vycka
"Laurentiu Cristofor [MSFT]" <laur@xxxxxxxxxx> wrote in message
news:%233fybxwxGHA.3492@xxxxxxxxxxxxxxxxxxxxxxx
If you recently made the domain account an administrator, you may need to
restart Sql Server for those permissions to take effect. A change of
permissions for an account won't affect processes already running as that
account.
Thanks
--
Laurentiu Cristofor [MSFT]
Software Design Engineer
SQL Server Engine
http://blogs.msdn.com/lcris/
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Vycka" <vyciunas@xxxxxx> wrote in message
news:ejaW$gsxGHA.2168@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
I'm running this command on my SQL server and I'm getting an error
'Access
denied.'
EXEC master.dbo.xp_cmdshell 'cacls "\\PC1\Temp\3.bmp" \E \G
DOMAIN\User:R'
- My sql server service is running on a domain account and that account
is
and administrator in sql server computer and in computer PC1.
- Directory "Temp" Sharing rights are "everyone - full control".
- File 3.bmp permissions are that all admins get full control.
This command works fine only when I set file permissions to "everyone -
full
control".
SQL server version - MS SQL 2005 Standard edition x64
Thanks for help
Vyckla
.
- References:
- "Access denied" with xp_cmdshell (!)
- From: Vycka
- Re: "Access denied" with xp_cmdshell (!)
- From: Laurentiu Cristofor [MSFT]
- Re: "Access denied" with xp_cmdshell (!)
- From: Vycka
- "Access denied" with xp_cmdshell (!)
- Prev by Date: Re: Delegation through Linked Server Stops working
- Next by Date: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error
- Previous by thread: Re: "Access denied" with xp_cmdshell (!)
- Next by thread: Re: SQL Server 2005 and default for Enforce password policy option
- Index(es):
Relevant Pages
|