Re: CreateProcessAsUser, error code 6
From: Tim (tchalk_at_gmail.com)
Date: 10/06/05
- Next message: Rhett Gong [MSFT]: "Re: AcquireCredentialshandle returns SEC_E_INTERNAL_ERROR"
- Previous message: Jakub Gwozdz: "Re: csp/pkcs11 container name management"
- In reply to: Narendra: "RE: CreateProcessAsUser, error code 6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 6 Oct 2005 10:42:43 -0700
> >Hi!
> > As long as the user I use with LogonUser is in the administrators
> > group, everything works fine. However, if I remove the user from the
> > administrators group, the exitcode that comes from GetExitCodeProcess
> > is always "6". Note, that the process I'm calling creates a logfile
> > when it starts up, and I *never* see the logfile. So it looks like
> > CreateProcessAsUser is not actually starting the process, even though
> > it returns with a success.
> The process calling LogonUser requires the SE_TCB_NAME privilege. If the
> calling process does not have this privilege, LogonUser fails and
> GetLastError returns ERROR_PRIVILEGE_NOT_HELD. Administrator has this
> privilegde while other user does not have. so whenver you remove your user
> from administrative group it will fail but you can give any user that right.
> For that you need to manually add this privielde using either local security
> policy or group policy.
Right, I'm familiar with the impersonation priviledges. The LogonUser
call still
actually succeeds in my application, and the user is logged in. In my
case, the
calling process is a service running as System, so the impersonation
priviledge is
inherent. The user being logged in also has to be granted the"Logon as
a Service"
rights, which is being done.
That's part of the weird part. the logon succeeds, but the
CreateProcessasUser fails.
Does the user being logged in typcially require the TCB_NAME priveledge
also for
some reason?
- Next message: Rhett Gong [MSFT]: "Re: AcquireCredentialshandle returns SEC_E_INTERNAL_ERROR"
- Previous message: Jakub Gwozdz: "Re: csp/pkcs11 container name management"
- In reply to: Narendra: "RE: CreateProcessAsUser, error code 6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|