UnauthorizedAccessException for NETWORK SERVICE?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Alex Papadimoulis
Posts: 2
Joined: Thu Oct 20, 2005 6:56 pm

UnauthorizedAccessException for NETWORK SERVICE?

Post by Alex Papadimoulis » Wed Mar 12, 2008 9:02 am

When running vault.exe (3.5.3) as NT AUTHORITY\NETWORK SERVICE, I'm getting an error regarding permissions ...

Unhandled Exception: System.UnauthorizedAccessException: Access to the path 'C:\Documents and Settings\Default User\Local Settings\Application Data\SourceGear\Vault_1\Client\CE9A6818-7E08-40CC-977B-3AF727FE8100\testuser' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

... which kinda makes sense. NETWORK SERVICE probably shouldn't have access to Default User's profile. I suspect there are a few workarounds:
* run as a domain account
* give NETWORK SERVICE access to Default User

However, both of those could prove to be issues... is there a different workaround for this? Perhaps, a Vault configuration setting that tells it to use another temp path?


Thanks

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Mar 12, 2008 4:01 pm

Try using a custom domain account and log into the Vault Server machine using that account to create the user profile directories.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply