Not able to access UNC share after doing the Imperosnation
- by Nitin Jain
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