Permissions configuration script.
Merge branch 'v1' into v2