Fix hard and softlinking, authorization failed when creating a new link