fix perms for shared directories