Update directory permissions