Added owner and group attributes for filesystem permissions

so that the created files have the correct owners / permissions.