update necessary directory permissions