Set appropriate permissions for each idp subdirectory

Resolves #45