set ownership and permissions for application code