A required privilege is not held by the client

Has anyone come across this error ?

DEBU [CLIENT] not using caching access point client\client.go:320
DEBU [CLIENT] Client is connecting to auth server on cluster “pylonmex0101.softlayer.local”. client\client.go:469
DEBU [KEYAGENT] Adding CA key for pylonmex0101.softlayer.local client\keyagent.go:238
DEBU [KEYSTORE] Adding known host pylonmex0101.softlayer.local with key: SHA256:KYhRzCEcYkyX2ZW6HtUidyLI5qrAn05JCKHdXm4McZw client\keystore.go:355
WARN [CLIENT] Failed to remove symlink: remove C:\Users\JohnGallagher.tsh\profile: The system cannot find the file specified. client\profile.go:155
WARN [CLIENT] Failed to save profile: symlink pylonmex0101.softlayer.local.yaml C:\Users\JohnGallagher.tsh\profile: A required privilege is not held by the client. client\api.go:333

ERROR REPORT:
Original Error: *os.LinkError symlink pylonmex0101.softlayer.local.yaml C:\Users\JohnGallagher.tsh\profile: A required privilege is not held by the client.
Stack Trace:
/gopath/src/github.com/gravitational/teleport/lib/client/profile.go:159 github.com/gravitational/teleport/lib/client.(*ClientProfile).SaveTo
/gopath/src/github.com/gravitational/teleport/lib/client/api.go:630 github.com/gravitational/teleport/lib/client.(*Config).SaveProfile

The error is coming when tsh attempts to save the profile settings to your local disk.

My guess is that you’re either using a filesystem (maybe a network filesystem?) that doesn’t support the Windows equivalent of symlinking, or you have some other restrictions placed the storage which prevents you doing this.

You might also like to check the Windows security tab for both the C:\Users\JohnGallagher.tsh directory and the C:\Users\JohnGallagher.tsh\profile file - it’s possible that your user only has read permissions for the file or similar.