Setting permissions of shared folder.