Perforce Public Knowledge Base - Sync failing with access denied errors for symlinks for workspace root on NTFS mounted share
× PRODUCTS SOLUTIONS CUSTOMERS LEARN SUPPORT
Downloads Blog Company Integrations Careers Contact Try Free
Menu Search
Perforce
Reset Search
 

 

Article

Sync failing with access denied errors for symlinks for workspace root on NTFS mounted share

« Go Back

Information

 
Problem
On a windows 2008 client, an NTFS share was mapped to a drive letter using the "net use" command. This was then used as the workspace root.

Performing a sync worked except for files of type symlink.

p4 sync  -f  @360928  
symlink: c:/builds\tools\bin\file: Access is denied.
Solution
The following 3 steps were performed on both the client machine that mapped the share and the server hosting the NTFS share. 
  • Check that windows User Access Control (UAC) is enabled. 
The exact procedure will vary between different versions of Windows but any level of UAC access should suffice (essentially UAC should not be disabled).
  • Check the "Create Symbolic Links Privilege" is enabled as described in this Knowledge Base article:  
  • Check that bi-directional remote symlinks are enabled.
​From a command prompt run the following command:

fsutil behavior query SymlinkEvaluation

If any are disabled, enable them by running the following command from a command prompt: 

fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1
 
 
This is discussed in more detail at the end of the following link:

http://serverfault.com/questions/7109/how-do-i-create-a-symbolic-link-in-windows


After following the above 3 steps to enable UAC and symlink privileges it was then possible to successfully sync the symlinks.  
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255