set perms on directories