Not able to access UNC share after doing the Imperosnation
Posted
by Nitin Jain
on Stack Overflow
See other posts from Stack Overflow
or by Nitin Jain
Published on 2009-07-06T14:57:59Z
Indexed on
2010/03/30
23:03 UTC
Read the original article
Hit count: 501
accessibility
We have to access a network UNC share which is say allowing access to USER1. Our exe is running with LOCAL SYSTEM account. In the exe, we do Impersonation with "USER1" credentials so that exe can access UNC share. But after doing the impersonation, we are still getting error "Access denied" while accessing that UNC share.
After the impersonation, we are enabling following privileges on the Impersonated thread: SE_BACKUP_NAME SE_CHANGE_NOTIFY_NAME SE_CREATE_GLOBAL_NAME SE_DEBUG_NAME SE_IMPERSONATE_NAME SE_RESTORE_NAME SE_SECURITY_NAME SE_TAKE_OWNERSHIP_NAME SE_TCB_NAME
Do we need to enable any other privileges or we are missing something else?
Thanks -- Nitin
© Stack Overflow or respective owner