Access is denied error 5
From: Walt (Walt_at_discussions.microsoft.com)
Date: 01/24/05
- Next message: Pavel Lebedinsky: "Re: Access is denied error 5"
- Previous message: Manikandan: "Impersonate Sample Code"
- Next in thread: Pavel Lebedinsky: "Re: Access is denied error 5"
- Reply: Pavel Lebedinsky: "Re: Access is denied error 5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 24 Jan 2005 13:21:03 -0800
Currently there are some machines that have problems running an application
that is a Windows Service. When Service goes to create a process it gets an
error 5 on some machines “Access is denied”.
The machines (both good and bad) report that they are at Windows 5.0.2195
Service Pack 4 Build 2195.
The Service currently has access to the desired executable. The path
variable also had the executable in its path.
The Service process can indeed “open” the executable for read (it also has
execute access).
The Service usually attempts to “CreateProcessAsUser” however
short-circuiting it to merely do a “CreateProcess” fails in a similar manner
(Access Denied).
The Service appears to have access to the Winstat0\Default desktop since it
is installed with “SERVICE_INTERACTIVE_PROCESS”.
Using SysInternals ProcessViewer I have checked the Security attributes for
the Windows Service on a "good" machine and “bad” machine. I can see no
appreciable differences. However a few (3 fields) do not provide a value on
the bad machine however they are shown as “Disabled” on my good machine. The
three items are “SeLoadDriverPriv, SeSystemtimePrivilege, SeUndockPrivilege).
None of these privileges appear to have any bearing on creating a process….
However… the difference is noted.
It appears that the "bad" machines can't create a process for some reason.
Any ideas???
Thanks
- Next message: Pavel Lebedinsky: "Re: Access is denied error 5"
- Previous message: Manikandan: "Impersonate Sample Code"
- Next in thread: Pavel Lebedinsky: "Re: Access is denied error 5"
- Reply: Pavel Lebedinsky: "Re: Access is denied error 5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|