Reuse existing vars. Allow standalone execution.
Allow standalone execution
Update with proper perms
Improve permissions check testcase.
Fix wrong permissions
Remove trailing white-space.
Merge pull request #11463 from s0undt3ch/develop

Permissions fixes