Updating permissions for storage directory