Properly set permissions